From a0b4260af094b6ab32a479dae4f4cb8c86a669f4 Mon Sep 17 00:00:00 2001 From: Ben Darnell Date: Wed, 13 Jun 2012 23:09:15 -0700 Subject: [PATCH] Give test_request_timeout another 10ms slack. This has been failing a lot on my freebsd VM. --- tornado/test/simple_httpclient_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tornado/test/simple_httpclient_test.py b/tornado/test/simple_httpclient_test.py index 380463e3..237a30f8 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()()