Skip to content

Commit e480d1e

Browse files
committed
test_time::test_clock_gettime: don't use non-deterministic assertion
1 parent 3d891ac commit e480d1e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test/test_time.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,5 @@ pub fn test_clock_getres() {
77

88
#[test]
99
pub fn test_clock_gettime() {
10-
let res1 = clock_gettime(ClockId::CLOCK_REALTIME).unwrap();
11-
let res2 = clock_gettime(ClockId::CLOCK_REALTIME).unwrap();
12-
assert!(res1 < res2);
10+
assert!(clock_gettime(ClockId::CLOCK_REALTIME).is_ok());
1311
}

0 commit comments

Comments
 (0)