From 3e3f6c0e229d0a94fa52da47ba3c9ac768b2bd08 Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Fri, 25 Jan 2019 16:20:19 -0500 Subject: [PATCH] fix test --- tests/unit/dht/test_async_gen_junction.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/unit/dht/test_async_gen_junction.py b/tests/unit/dht/test_async_gen_junction.py index 16cd6168c..bbb3c8b05 100644 --- a/tests/unit/dht/test_async_gen_junction.py +++ b/tests/unit/dht/test_async_gen_junction.py @@ -49,8 +49,8 @@ class TestAsyncGeneratorJunction(AsyncioTestCase): async def test_one_stopped_first(self): expected_order = [1, 2, 1, 1, 2, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2] - fast_gen = MockAsyncGen(self.loop, 1, 0.1, 5) - slow_gen = MockAsyncGen(self.loop, 2, 0.2) + fast_gen = MockAsyncGen(self.loop, 1, 0.101, 5) + slow_gen = MockAsyncGen(self.loop, 2, 0.201) await self._test_junction(expected_order, fast_gen, slow_gen) self.assertEqual(fast_gen.called_close, True) self.assertEqual(slow_gen.called_close, True) @@ -62,10 +62,10 @@ class TestAsyncGeneratorJunction(AsyncioTestCase): for i in range(10): if i == 5: return - await asyncio.sleep(0.1) + await asyncio.sleep(0.101) yield 1 - slow_gen = MockAsyncGen(self.loop, 2, 0.2) + slow_gen = MockAsyncGen(self.loop, 2, 0.201) await self._test_junction(expected_order, fast_gen(), slow_gen) self.assertEqual(slow_gen.called_close, True)