Skip to content

Commit 397f1b9

Browse files
committed
fix(test): disable memory monitor in uvm_restored
In the uvm_restored fixture, we create a throwaway VM to take a snapshot of. This VM is completely invisible to the test, so cannot be configured differently. If the memory monitor triggers in this VM, then it has nothing to do with the test itself, and it is not recoverable. So just disable the memory monitor for this VM. Signed-off-by: Patrick Roy <[email protected]>
1 parent 72a8bd1 commit 397f1b9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/conftest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -634,6 +634,7 @@ def uvm_restored(
634634
uvm = uvm_booted(
635635
microvm_factory, guest_kernel, rootfs, cpu_template, pci_enabled, **kwargs
636636
)
637+
uvm.memory_monitor = None
637638
snapshot = uvm.snapshot_full()
638639
uvm.kill()
639640
uvm2 = microvm_factory.build_from_snapshot(snapshot)

0 commit comments

Comments
 (0)