Increase the elapsed time window.
This commit is contained in:
parent
dec205757a
commit
34ddd775e8
@ -34,7 +34,7 @@ fn test_timed_wait_timeout(clock_id: i32) {
|
||||
libc::ETIMEDOUT
|
||||
);
|
||||
let elapsed_time = current_time.elapsed().as_millis();
|
||||
assert!(900 <= elapsed_time && elapsed_time <= 1100);
|
||||
assert!(900 <= elapsed_time && elapsed_time <= 1300);
|
||||
assert_eq!(libc::pthread_mutex_unlock(&mut mutex as *mut _), 0);
|
||||
assert_eq!(libc::pthread_mutex_destroy(&mut mutex as *mut _), 0);
|
||||
assert_eq!(libc::pthread_cond_destroy(&mut cond as *mut _), 0);
|
||||
|
Loading…
Reference in New Issue
Block a user