Give test_request_timeout another 10ms slack.
This has been failing a lot on my freebsd VM.
This commit is contained in:
parent
f48578cce3
commit
a0b4260af0
|
@ -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()()
|
||||
|
|
Loading…
Reference in New Issue