Unverified Commit 403ff669 authored by Ryan McCormick's avatar Ryan McCormick Committed by GitHub
Browse files

test: Expand time range for flaky recorder test to improve stability (#5315)

parent b1fc99ca
...@@ -464,11 +464,11 @@ mod tests { ...@@ -464,11 +464,11 @@ mod tests {
// Check that both events were recorded // Check that both events were recorded
assert_eq!(recorder.event_count().await, 2); assert_eq!(recorder.event_count().await, 2);
// Check that the elapsed time is between 7 and 13 milliseconds // Check that the elapsed time is between 5 and 15 milliseconds
let elapsed_ms = recorder.elapsed_time().await.unwrap().as_millis(); let elapsed_ms = recorder.elapsed_time().await.unwrap().as_millis();
if !(7..=13).contains(&elapsed_ms) { if !(5..=15).contains(&elapsed_ms) {
println!("Actual elapsed time: {} ms", elapsed_ms); println!("Actual elapsed time: {} ms", elapsed_ms);
assert!((7..=13).contains(&elapsed_ms)); assert!((5..=15).contains(&elapsed_ms));
} }
// Force shutdown to flush file // Force shutdown to flush file
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment