Auto merge of #1611 - RalfJung:timing-tests, r=RalfJung

increase timeout to avoid spurious test failures

just saw this fail on macOS in PR CI, so add some extra safety margin
This commit is contained in:
bors 2020-10-30 18:22:11 +00:00
commit e4840ef4c9

View File

@ -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();
}