Skip to content

Commit

Permalink
tests/pass/concurrency/sync: try to make it less likely for the test …
Browse files Browse the repository at this point in the history
…to fail on macOS
  • Loading branch information
RalfJung committed Feb 19, 2024
1 parent 28abd3f commit 2f0f294
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/pass/concurrency/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ fn check_conditional_variables_timed_wait_notimeout() {
let guard = lock.lock().unwrap();

let handle = thread::spawn(move || {
thread::sleep(Duration::from_millis(100)); // Make sure the other thread is waiting by the time we call `notify`.
thread::sleep(Duration::from_millis(10)); // Make sure the other thread is waiting by the time we call `notify`.
let (_lock, cvar) = &*pair2;
cvar.notify_one();
});
Expand Down

0 comments on commit 2f0f294

Please sign in to comment.