1
0
mirror of https://github.com/GNS3/gns3-server synced 2025-01-13 01:20:58 +00:00

Fix compute Docker test

This commit is contained in:
grossmj 2021-12-02 22:15:23 +10:30
parent 296446189f
commit af9860f965

View File

@ -1015,6 +1015,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