Replace asyncio.async() by asyncio.ensure_future() in tests. Ref #2566.

This commit is contained in:
grossmj
2018-08-24 18:52:15 +07:00
parent 089d25c79d
commit a3d1e865a8
19 changed files with 171 additions and 171 deletions

View File

@ -356,7 +356,7 @@ def test_pcap(http_controller, tmpdir, project, compute, loop):
project._links = {link.id: link}
future = asyncio.Future()
asyncio.async(go(future))
asyncio.ensure_future(go(future))
response = loop.run_until_complete(future)
assert response.status == 200
assert b'hello' == response.body