Skip to content

Commit

Permalink
Merge pull request #80 from ticosax/fix-waiting-tests
Browse files Browse the repository at this point in the history
We need to wait a bit so pending futures are waited for
  • Loading branch information
asvetlov committed Oct 28, 2016
2 parents 7b3b83c + 3907c53 commit 610d57e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/rpc_pipeline_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def communicate():
self.assertIsInstance(task, asyncio.Task)
server.close()
yield from server.wait_closed()
yield from asyncio.sleep(0, loop=self.loop)
yield from asyncio.sleep(.1, loop=self.loop)
self.assertEqual(0, len(server._proto.pending_waiters))
fut.cancel()

Expand Down
2 changes: 1 addition & 1 deletion tests/rpc_pubsub_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ def communicate():
self.assertIsInstance(task, asyncio.Task)
server.close()
yield from server.wait_closed()
yield from asyncio.sleep(0, loop=self.loop)
yield from asyncio.sleep(.1, loop=self.loop)
self.assertEqual(0, len(server._proto.pending_waiters))
fut.cancel()

Expand Down

0 comments on commit 610d57e

Please sign in to comment.