We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d891ac commit e480d1eCopy full SHA for e480d1e
test/test_time.rs
@@ -7,7 +7,5 @@ pub fn test_clock_getres() {
7
8
#[test]
9
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);
+ assert!(clock_gettime(ClockId::CLOCK_REALTIME).is_ok());
13
}
0 commit comments