Commit 4adfb789 authored by Denis Bilenko's avatar Denis Bilenko

fix a timing issue in test__pool.py

parent d13c75e4
......@@ -196,6 +196,7 @@ class TestPool(greentest.TestCase):
get = TimingWrapper(res.get)
self.assertEqual(get(), 49)
self.assertAlmostEqual(get.elapsed, TIMEOUT1, 1)
gevent.sleep(0) # let's the callback run
assert result == [49], result
def test_async_timeout(self):
......
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