tests: Add an extra await to the process executor test

This commit is contained in:
Yury Selivanov 2016-07-27 14:01:41 -04:00
parent ad5181b36a
commit 53203bf3e1
1 changed files with 1 additions and 0 deletions

View File

@ -21,6 +21,7 @@ class _TestExecutors:
coros.append(self.loop.run_in_executor(pool, fib, i)) coros.append(self.loop.run_in_executor(pool, fib, i))
res = await asyncio.gather(*coros, loop=self.loop) res = await asyncio.gather(*coros, loop=self.loop)
self.assertEqual(res, fib10) self.assertEqual(res, fib10)
await asyncio.sleep(0.01)
fib10 = [fib(i) for i in range(10)] fib10 = [fib(i) for i in range(10)]
self.loop.run_until_complete(run()) self.loop.run_until_complete(run())