From: Ben Darnell Date: Thu, 14 Jun 2012 06:09:15 +0000 (-0700) Subject: Give test_request_timeout another 10ms slack. X-Git-Tag: v2.4.0~66 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a0b4260af094b6ab32a479dae4f4cb8c86a669f4;p=thirdparty%2Ftornado.git Give test_request_timeout another 10ms slack. This has been failing a lot on my freebsd VM. --- diff --git a/tornado/test/simple_httpclient_test.py b/tornado/test/simple_httpclient_test.py index 380463e35..237a30f89 100644 --- a/tornado/test/simple_httpclient_test.py +++ b/tornado/test/simple_httpclient_test.py @@ -210,7 +210,7 @@ class SimpleHTTPClientTestCase(AsyncHTTPTestCase, LogTrapTestCase): def test_request_timeout(self): response = self.fetch('/trigger?wake=false', request_timeout=0.1) self.assertEqual(response.code, 599) - self.assertTrue(0.099 < response.request_time < 0.11, response.request_time) + self.assertTrue(0.099 < response.request_time < 0.12, response.request_time) self.assertEqual(str(response.error), "HTTP 599: Timeout") # trigger the hanging request to let it clean up after itself self.triggers.popleft()()