Skip to content

Commit 74704c7

Browse files
committed
Assure time-based test doesn't spuriously fail on slow windows machines (CI)
1 parent 3edf0fe commit 74704c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gix-path/tests/realpath/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ fn fuzzed_timeout() -> crate::Result {
1818
}
1919
));
2020
assert!(
21-
start.elapsed() < Duration::from_millis(500),
21+
start.elapsed() < Duration::from_millis(if cfg!(windows) { 1000 } else { 500 }),
2222
"took too long: {:.02} , we can't take too much time for this, and should keep the amount of work reasonable\
2323
as paths can be part of URls which sometimes are canonicalized",
2424
start.elapsed().as_secs_f32()

0 commit comments

Comments
 (0)