Skip to content

Commit d12de8f

Browse files
committed
std: Add debugging for a failing test on appveyor
I'm not sure why this is failing, so let's hopefully get some more information to help investigation!
1 parent f6e9485 commit d12de8f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/libstd/time.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,8 @@ mod tests {
481481
let (a, b) = ($a, $b);
482482
if a != b {
483483
let (a, b) = if a > b {(a, b)} else {(b, a)};
484-
assert!(a - Duration::new(0, 100) <= b);
484+
assert!(a - Duration::new(0, 100) <= b,
485+
"{:?} is not almost equal to {:?}", a, b);
485486
}
486487
})
487488
}

0 commit comments

Comments
 (0)