Avoid RecursionError in test

A sleep value of 0.05 resulted in a RecursionError in some environments.
This commit is contained in:
Andrew Rabert 2017-06-08 16:56:28 -04:00
parent 7f2956413c
commit 4181abc542

View file

@ -449,7 +449,7 @@ class RunnerTests(MockHelper, unittest.TestCase):
def test_that_shutdown_stops_after_timelimit(self):
def add_timeout(_, callback):
time.sleep(0.05)
time.sleep(0.1)
callback()
self.io_loop.add_timeout = mock.Mock(side_effect=add_timeout)