mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Fix tests to work with new version of aiohttp (>= 3.0)
This commit is contained in:
1 parent
9ae9209881
commit
ab8dc52ece
18 files changed
+218
-184
No files matched your search
@@ -200,9 +200,11 @@ def test_reload(loop, vm, fake_iou_bin):
|
||||
|
||||
|
||||
def test_close(vm, port_manager, loop):
|
||||
vm._start_ubridge = AsyncioMagicMock(return_value=True)
|
||||
vm._ubridge_send = AsyncioMagicMock()
|
||||
with asyncio_patch("gns3server.compute.iou.iou_vm.IOUVM._check_requirements", return_value=True):
|
||||
with asyncio_patch("asyncio.create_subprocess_exec", return_value=MagicMock()):
|
||||
vm.start()
|
||||
loop.run_until_complete(asyncio.ensure_future(vm.start()))
|
||||
port = vm.console
|
||||
loop.run_until_complete(asyncio.ensure_future(vm.close()))
|
||||
# Raise an exception if the port is not free
|
||||
|
||||
Reference in new issue
Block a user