Skip to content

Commit

Permalink
Relax a timing sensitive test that fails occasionally on travis-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
bdarnell committed Mar 10, 2013
1 parent 76a4b1f commit 9ec8176
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tornado/test/simple_httpclient_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def test_request_timeout(self):
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()()
Expand Down

0 comments on commit 9ec8176

Please sign in to comment.