Commit 6cda48b2 authored by Denis Bilenko's avatar Denis Bilenko

test__hub.py: avoid timings errors on slow machines

parent 23a8277c
......@@ -84,7 +84,9 @@ class TestExceptionInMainloop(greentest.TestCase):
class TestShutdown(unittest.TestCase):
def _shutdown(self, seconds=0, fuzzy=0.01):
def _shutdown(self, seconds=0, fuzzy=None):
if fuzzy is None:
fuzzy = max(0.05, seconds / 2.)
start = time.time()
gevent.hub.shutdown()
delta = time.time() - start
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment