1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-23 23:38:21 +00:00

Fix compute Docker test. Fixes #2003

This commit is contained in:
grossmj 2021-12-15 13:30:38 +10:30
parent b400ae240d
commit 87c1df1639

View File

@ -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.Docker.query") as mock_query:
vm._permissions_fixed = False
await vm.stop()
mock_query.assert_called_with("POST", "containers/e90e34656842/stop", params={"t": 5})
assert mock.stop.called