Skip to content

Commit

Permalink
Assure time-based test doesn't spuriously fail on slow windows machin…
Browse files Browse the repository at this point in the history
…es (CI)
  • Loading branch information
Byron committed Jan 25, 2024
1 parent 3edf0fe commit 74704c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gix-path/tests/realpath/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ fn fuzzed_timeout() -> crate::Result {
}
));
assert!(
start.elapsed() < Duration::from_millis(500),
start.elapsed() < Duration::from_millis(if cfg!(windows) { 1000 } else { 500 }),
"took too long: {:.02} , we can't take too much time for this, and should keep the amount of work reasonable\
as paths can be part of URls which sometimes are canonicalized",
start.elapsed().as_secs_f32()
Expand Down

0 comments on commit 74704c7

Please sign in to comment.