From 2a4faf638bb65d26a92cf9d8047818f6105dd078 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Fri, 30 Oct 2020 18:59:58 +0100 Subject: [PATCH] increase timeout to avoid spurious test failures --- tests/run-pass/concurrency/sync.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/run-pass/concurrency/sync.rs b/tests/run-pass/concurrency/sync.rs index bdbc4b90f6e..e97da415cbb 100644 --- a/tests/run-pass/concurrency/sync.rs +++ b/tests/run-pass/concurrency/sync.rs @@ -109,7 +109,7 @@ fn check_conditional_variables_timed_wait_notimeout() { cvar.notify_one(); }); - let (_guard, timeout) = cvar.wait_timeout(guard, Duration::from_millis(200)).unwrap(); + let (_guard, timeout) = cvar.wait_timeout(guard, Duration::from_millis(500)).unwrap(); assert!(!timeout.timed_out()); handle.join().unwrap(); }