Skip to content

Commit 0fd78cf

Browse files
committed
test(snapshot_latency): do not reuse netns
This is because with netns reuse, the first test variant spends time on initialising netns, while the subsequent test variants do not. Disable netns reuse to make the performance data consistent. Signed-off-by: Nikita Kalyazin <[email protected]>
1 parent 4ebca1e commit 0fd78cf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/integration_tests/performance/test_snapshot.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,9 @@ def test_restore_latency(
122122

123123
snapshot = vm.snapshot_full()
124124
vm.kill()
125-
for microvm in microvm_factory.build_n_from_snapshot(snapshot, ITERATIONS):
125+
for microvm in microvm_factory.build_n_from_snapshot(
126+
snapshot, ITERATIONS, no_netns_reuse=True
127+
):
126128
value = 0
127129
# Parse all metric data points in search of load_snapshot time.
128130
microvm.flush_metrics()

0 commit comments

Comments
 (0)