From: Ben Darnell Date: Sun, 10 Mar 2013 03:05:00 +0000 (-0500) Subject: Relax a timing sensitive test that fails occasionally on travis-ci X-Git-Tag: v3.0.0~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9ec81761942a697e32e4fc8dc59356e0a6549aa2;p=thirdparty%2Ftornado.git Relax a timing sensitive test that fails occasionally on travis-ci --- diff --git a/tornado/test/simple_httpclient_test.py b/tornado/test/simple_httpclient_test.py index 1c24dc570..65fde6d57 100644 --- a/tornado/test/simple_httpclient_test.py +++ b/tornado/test/simple_httpclient_test.py @@ -213,7 +213,7 @@ class SimpleHTTPClientTestCase(AsyncHTTPTestCase): with ExpectLog(gen_log, "uncaught exception"): response = self.fetch('/trigger?wake=false', request_timeout=0.1) self.assertEqual(response.code, 599) - self.assertTrue(0.099 < response.request_time < 0.12, response.request_time) + self.assertTrue(0.099 < response.request_time < 0.15, 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()()