We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bacf131 commit dd80b1aCopy full SHA for dd80b1a
tests/pass/concurrency/sync.rs
@@ -81,7 +81,9 @@ fn check_conditional_variables_timed_wait_notimeout() {
81
cvar.notify_one();
82
});
83
84
- let (_guard, timeout) = cvar.wait_timeout(guard, Duration::from_millis(1000)).unwrap();
+ // macOS runners are very unreliable.
85
+ let timeout = if cfg!(target_os = "macos") { 2000 } else { 500 };
86
+ let (_guard, timeout) = cvar.wait_timeout(guard, Duration::from_millis(timeout)).unwrap();
87
assert!(!timeout.timed_out());
88
handle.join().unwrap();
89
}
0 commit comments