Skip to content

Commit

Permalink
ci: Fix the add_event_with_instant test (#2359)
Browse files Browse the repository at this point in the history
It fails if the runtime exceeds 10 seconds, which happens sometimes in CI, e.g., https://github.com/mozilla/neqo/actions/runs/12772087190/job/35600809738?pr=2295#step:7:231
  • Loading branch information
larseggert authored Jan 15, 2025
1 parent 7bbf900 commit 7f8136e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neqo-common/src/qlog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ mod test {
let (log, contents) = test_fixture::new_neqo_qlog();
log.add_event_with_instant(|| Some(Event::with_time(0.0, EV_DATA)), Instant::now());
assert_eq!(
Regex::new("\"time\":[0-9].[0-9]*,")
Regex::new("\"time\":[0-9]+.[0-9]+,")
.unwrap()
.replace(&contents.to_string(), "\"time\":0.0,"),
format!("{EXPECTED_LOG_HEADER}{EXPECTED_LOG_EVENT}"),
Expand Down

0 comments on commit 7f8136e

Please sign in to comment.