Skip to content

Commit

Permalink
test_time::test_clock_gettime: don't use non-deterministic assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinwern committed Sep 17, 2019
1 parent 795d7c4 commit e1b481f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/test_time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,5 @@ pub fn test_clock_getres() {

#[test]
pub fn test_clock_gettime() {
let res1 = clock_gettime(ClockId::CLOCK_REALTIME).unwrap();
let res2 = clock_gettime(ClockId::CLOCK_REALTIME).unwrap();
assert!(res1 < res2);
assert!(clock_gettime(ClockId::CLOCK_REALTIME).is_ok());
}

0 comments on commit e1b481f

Please sign in to comment.