Increase the elapsed time window.

This commit is contained in:
Vytautas Astrauskas 2020-05-25 08:07:07 +02:00
parent dec205757a
commit 34ddd775e8

View File

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