Skip to content

Commit 7f8136e

Browse files
authored
ci: Fix the add_event_with_instant test (#2359)
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
1 parent 7bbf900 commit 7f8136e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

neqo-common/src/qlog.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ mod test {
229229
let (log, contents) = test_fixture::new_neqo_qlog();
230230
log.add_event_with_instant(|| Some(Event::with_time(0.0, EV_DATA)), Instant::now());
231231
assert_eq!(
232-
Regex::new("\"time\":[0-9].[0-9]*,")
232+
Regex::new("\"time\":[0-9]+.[0-9]+,")
233233
.unwrap()
234234
.replace(&contents.to_string(), "\"time\":0.0,"),
235235
format!("{EXPECTED_LOG_HEADER}{EXPECTED_LOG_EVENT}"),

0 commit comments

Comments
 (0)