Skip to content

Commit 8aa5034

Browse files
committed
fix(test_snapshot): wait for VM to come up before snapshot
When using guest kernel 6.1 these tests started failing. Waiting for the VM to come up before the snapshot fixes the problems. Signed-off-by: Riccardo Mancini <[email protected]>
1 parent 312030d commit 8aa5034

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

tests/integration_tests/functional/test_api.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1166,6 +1166,7 @@ def test_get_full_config_after_restoring_snapshot(microvm_factory, uvm_nano):
11661166
}
11671167
]
11681168

1169+
uvm_nano.wait_for_up()
11691170
snapshot = uvm_nano.snapshot_full()
11701171
uvm2 = microvm_factory.build()
11711172
uvm2.spawn()

tests/integration_tests/functional/test_snapshot_editor.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ def test_remove_regs(uvm_nano, microvm_factory):
2727
vm = uvm_nano
2828
vm.add_net_iface()
2929
vm.start()
30+
vm.wait_for_up()
3031

3132
snapshot = vm.snapshot_full()
3233

0 commit comments

Comments
 (0)