From 74704c78276bd8bc9bdf3950e05a79bbc7d41309 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Thu, 25 Jan 2024 09:22:19 +0100 Subject: [PATCH] Assure time-based test doesn't spuriously fail on slow windows machines (CI) --- gix-path/tests/realpath/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gix-path/tests/realpath/mod.rs b/gix-path/tests/realpath/mod.rs index 24f4688218b..331f86dff3f 100644 --- a/gix-path/tests/realpath/mod.rs +++ b/gix-path/tests/realpath/mod.rs @@ -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()