From 4338afab7fa0fc8022f5636d57902c4fdd7f0c29 Mon Sep 17 00:00:00 2001 From: grossmj Date: Fri, 2 Jun 2023 20:16:06 +0930 Subject: [PATCH] Fix tests --- tests/compute/docker/test_docker_vm.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/compute/docker/test_docker_vm.py b/tests/compute/docker/test_docker_vm.py index 4d1b2402..9396cc89 100644 --- a/tests/compute/docker/test_docker_vm.py +++ b/tests/compute/docker/test_docker_vm.py @@ -1115,8 +1115,7 @@ async def test_close(vm, port_manager): async def test_close_vnc(vm): vm._console_type = "vnc" - vm._x11vnc_process = MagicMock() - vm._xvfb_process = MagicMock() + vm._vnc_process = MagicMock() with asyncio_patch("gns3server.compute.docker.DockerVM._get_container_state", return_value="stopped"): with asyncio_patch("gns3server.compute.docker.Docker.query") as mock_query: @@ -1124,7 +1123,7 @@ async def test_close_vnc(vm): mock_query.assert_called_with("DELETE", "containers/e90e34656842", params={"force": 1, "v": 1}) assert vm._closed is True - assert vm._xvfb_process.terminate.called + assert vm._vnc_process.terminate.called async def test_get_namespace(vm):