Skip to content

Commit bf0f430

Browse files
Manciukicroypat
authored andcommitted
fix(test/pvtime): bump tolerance to 10s
We found a single failure for which the steal time between snapshot and restore went slightly above 2s on an AMD instance. As the purpose of this check is to ensure the value is "sane" (iow not a completely random number), not that it's really accurate (that's a kernel problem), I'm bumping it to 10s. Signed-off-by: Riccardo Mancini <mancio@amazon.com>
1 parent 93ada71 commit bf0f430

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/integration_tests/functional/test_steal_time.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def test_pvtime_snapshot(uvm_plain, microvm_factory):
110110
steal_after_resume = get_steal_time_ms(restored_vm)
111111

112112
# Ensure steal time persisted and continued increasing
113-
tolerance = 2000 # 2.0 seconds tolerance for persistence check
113+
tolerance = 10000 # 10.0 seconds tolerance for persistence check
114114
persisted = (
115115
steal_before < steal_after_snap and steal_after_snap - steal_before < tolerance
116116
)

0 commit comments

Comments
 (0)