1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-13 20:08:55 +00:00

Speed up tests

This commit is contained in:
grossmj 2023-08-19 12:29:25 +10:00
parent e9e2dc2ca7
commit 425ad845fc
2 changed files with 2 additions and 0 deletions

View File

@ -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

View File

@ -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",