Give test_request_timeout another 10ms slack.

This has been failing a lot on my freebsd VM.
This commit is contained in:
Ben Darnell 2012-06-13 23:09:15 -07:00
parent f48578cce3
commit a0b4260af0
1 changed files with 1 additions and 1 deletions

View File

@ -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()()