Skip to content

Commit

Permalink
Auto merge of #1611 - RalfJung:timing-tests, r=RalfJung
Browse files Browse the repository at this point in the history
increase timeout to avoid spurious test failures

just saw this fail on macOS in PR CI, so add some extra safety margin
  • Loading branch information
bors committed Oct 30, 2020
2 parents 8f36839 + 2a4faf6 commit e4840ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/run-pass/concurrency/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit e4840ef

Please sign in to comment.