Skip to content

Commit e9ecf8f

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 ce0f006 commit e9ecf8f

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)