From 425ad845fc181e8f74db18de5343ce1991f75a20 Mon Sep 17 00:00:00 2001 From: grossmj Date: Sat, 19 Aug 2023 12:29:25 +1000 Subject: [PATCH] Speed up tests --- tests/compute/qemu/test_qemu_vm.py | 1 + tests/controller/gns3vm/test_remote_gns3_vm.py | 1 + 2 files changed, 2 insertions(+) diff --git a/tests/compute/qemu/test_qemu_vm.py b/tests/compute/qemu/test_qemu_vm.py index 1573a8be..b719b186 100644 --- a/tests/compute/qemu/test_qemu_vm.py +++ b/tests/compute/qemu/test_qemu_vm.py @@ -73,6 +73,7 @@ async def vm(compute_project, manager, fake_qemu_binary, fake_qemu_img_binary): manager.port_manager.console_host = "127.0.0.1" vm = QemuVM("test", "00010203-0405-0607-0809-0a0b0c0d0e0f", compute_project, manager, qemu_path=fake_qemu_binary) vm._process_priority = "normal" # Avoid complexity for Windows tests + vm._replicate_network_connection_state = False # to avoid delay when starting/stopping the VM vm._start_ubridge = AsyncioMagicMock() vm._ubridge_hypervisor = MagicMock() vm._ubridge_hypervisor.is_running.return_value = True diff --git a/tests/controller/gns3vm/test_remote_gns3_vm.py b/tests/controller/gns3vm/test_remote_gns3_vm.py index 0e6603e9..b9a54c0f 100644 --- a/tests/controller/gns3vm/test_remote_gns3_vm.py +++ b/tests/controller/gns3vm/test_remote_gns3_vm.py @@ -61,6 +61,7 @@ async def test_start(gns3vm, controller): async def test_start_invalid_vm(gns3vm, controller): await controller.add_compute("r1", + connect=False, name="R1", protocol="https", host="r1.local",