This commit is contained in:
Ralf Jung 2022-05-23 17:35:36 +02:00
parent 31fb32e49f
commit f0921bd5dc
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
9e2f65586366b731f13a10021c5191a664f4adc2
32c8c5df06c025441ad04791d7982d65c79a60e4

View File

@ -91,7 +91,7 @@ fn check_conditional_variables_timed_wait_timeout() {
let (_guard, timeout) = cvar.wait_timeout(guard, Duration::from_millis(100)).unwrap();
assert!(timeout.timed_out());
let elapsed_time = now.elapsed().as_millis();
assert!(100 <= elapsed_time && elapsed_time <= 800);
assert!(100 <= elapsed_time && elapsed_time <= 1000);
}
/// Test that signaling a conditional variable when waiting with a timeout works