Skip to content

Commit a093711

Browse files
roypatkalyazin
authored andcommitted
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 <roypat@amazon.co.uk>
1 parent cc24c1b commit a093711

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
@@ -651,6 +651,7 @@ def uvm_restored(
651651
uvm = uvm_booted(
652652
microvm_factory, guest_kernel, rootfs, cpu_template, pci_enabled, **kwargs
653653
)
654+
uvm.memory_monitor = None
654655
snapshot = uvm.snapshot_full()
655656
uvm.kill()
656657
uvm2 = microvm_factory.build_from_snapshot(snapshot)

0 commit comments

Comments
 (0)