Skip to content

Commit

Permalink
std: Add debugging for a failing test on appveyor
Browse files Browse the repository at this point in the history
I'm not sure why this is failing, so let's hopefully get some more
information to help investigation!
  • Loading branch information
alexcrichton committed Nov 17, 2018
1 parent f6e9485 commit d12de8f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libstd/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,8 @@ 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, 100) <= b);
assert!(a - Duration::new(0, 100) <= b,
"{:?} is not almost equal to {:?}", a, b);
}
})
}
Expand Down

0 comments on commit d12de8f

Please sign in to comment.