mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-06-21 16:39:40 +00:00
Replace asyncio.async() by asyncio.ensure_future() in tests. Ref #2566.
This commit is contained in:
@ -179,7 +179,7 @@ def test_notification(http_controller, project, controller, loop, async_run):
|
||||
response.close()
|
||||
return response
|
||||
|
||||
response = async_run(asyncio.async(go()))
|
||||
response = async_run(asyncio.ensure_future(go()))
|
||||
assert response.status == 200
|
||||
assert b'"action": "ping"' in response.body
|
||||
assert b'"cpu_usage_percent"' in response.body
|
||||
|
Reference in New Issue
Block a user