Skip to content

Commit 41f87ee

Browse files
committed
fix(test): stop passing guest kernel when building vms from snapshot
When building a microvm from a snapshot, there is no need to specify a guest kernel. Remove the parameter from SnapshotRestoreTest.sample_latency. Signed-off-by: Patrick Roy <[email protected]>
1 parent fc55810 commit 41f87ee

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

tests/integration_tests/performance/test_snapshot_ab.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,15 +76,12 @@ def configure_vm(
7676

7777
return vm
7878

79-
def sample_latency(
80-
self, microvm_factory, snapshot, guest_kernel_linux_5_10
81-
) -> List[float]:
79+
def sample_latency(self, microvm_factory, snapshot) -> List[float]:
8280
"""Collects latency samples for the microvm configuration specified by this instance"""
8381
values = []
8482

8583
for _ in range(ITERATIONS):
8684
microvm = microvm_factory.build(
87-
kernel=guest_kernel_linux_5_10,
8885
monitor_memory=False,
8986
)
9087
microvm.spawn(emit_metrics=True)
@@ -154,7 +151,6 @@ def test_restore_latency(
154151
samples = test_setup.sample_latency(
155152
microvm_factory,
156153
snapshot,
157-
guest_kernel_linux_5_10,
158154
)
159155

160156
for sample in samples:

0 commit comments

Comments
 (0)