mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-06-01 15:20:59 +00:00
Fix VPCS tests
This commit is contained in:
parent
271cb527d4
commit
834a554fea
@ -97,7 +97,8 @@ def test_stop(loop, vm):
|
|||||||
loop.run_until_complete(asyncio.async(vm.start()))
|
loop.run_until_complete(asyncio.async(vm.start()))
|
||||||
assert vm.is_running()
|
assert vm.is_running()
|
||||||
|
|
||||||
loop.run_until_complete(asyncio.async(vm.stop()))
|
with asyncio_patch("gns3server.utils.asyncio.wait_for_process_termination"):
|
||||||
|
loop.run_until_complete(asyncio.async(vm.stop()))
|
||||||
assert vm.is_running() is False
|
assert vm.is_running() is False
|
||||||
process.terminate.assert_called_with()
|
process.terminate.assert_called_with()
|
||||||
|
|
||||||
@ -117,7 +118,9 @@ def test_reload(loop, vm):
|
|||||||
vm.port_add_nio_binding(0, nio)
|
vm.port_add_nio_binding(0, nio)
|
||||||
loop.run_until_complete(asyncio.async(vm.start()))
|
loop.run_until_complete(asyncio.async(vm.start()))
|
||||||
assert vm.is_running()
|
assert vm.is_running()
|
||||||
loop.run_until_complete(asyncio.async(vm.reload()))
|
|
||||||
|
with asyncio_patch("gns3server.utils.asyncio.wait_for_process_termination"):
|
||||||
|
loop.run_until_complete(asyncio.async(vm.reload()))
|
||||||
assert vm.is_running() is True
|
assert vm.is_running() is True
|
||||||
process.terminate.assert_called_with()
|
process.terminate.assert_called_with()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user