Skip to content

Commit 0bfdedb

Browse files
committed
Auto merge of rust-lang#30118 - alexcrichton:fix-time-again, r=aturon
I believe that because Windows' unit of resolution is 100ns that this unit of time will ensure that the assertions will hold true as it's representable in the native format. cc rust-lang#29970
2 parents c212c0e + 9034440 commit 0bfdedb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/time/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ mod tests {
235235
let (a, b) = ($a, $b);
236236
if a != b {
237237
let (a, b) = if a > b {(a, b)} else {(b, a)};
238-
assert!(a - Duration::new(0, 1) <= b);
238+
assert!(a - Duration::new(0, 100) <= b);
239239
}
240240
})
241241
}

0 commit comments

Comments
 (0)