mirror of
https://github.com/GNS3/gns3-server
synced 2024-12-24 15:58:08 +00:00
Fix compute Docker test. Fixes #2003
This commit is contained in:
parent
b400ae240d
commit
87c1df1639
@ -952,6 +952,7 @@ async def test_stop(vm):
|
|||||||
|
|
||||||
with asyncio_patch("gns3server.compute.docker.DockerVM._get_container_state", return_value="running"):
|
with asyncio_patch("gns3server.compute.docker.DockerVM._get_container_state", return_value="running"):
|
||||||
with asyncio_patch("gns3server.compute.docker.Docker.query") as mock_query:
|
with asyncio_patch("gns3server.compute.docker.Docker.query") as mock_query:
|
||||||
|
vm._permissions_fixed = False
|
||||||
await vm.stop()
|
await vm.stop()
|
||||||
mock_query.assert_called_with("POST", "containers/e90e34656842/stop", params={"t": 5})
|
mock_query.assert_called_with("POST", "containers/e90e34656842/stop", params={"t": 5})
|
||||||
assert mock.stop.called
|
assert mock.stop.called
|
||||||
|
Loading…
Reference in New Issue
Block a user