Auto merge of #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 #29970
This commit is contained in:
bors 2015-12-01 07:40:41 +00:00
commit 0bfdedb010

View File

@ -235,7 +235,7 @@ mod tests {
let (a, b) = ($a, $b);
if a != b {
let (a, b) = if a > b {(a, b)} else {(b, a)};
assert!(a - Duration::new(0, 1) <= b);
assert!(a - Duration::new(0, 100) <= b);
}
})
}