Skip to content

Commit

Permalink
Rollup merge of rust-lang#56017 - alexcrichton:debug-test, r=alexcric…
Browse files Browse the repository at this point in the history
…hton

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!
  • Loading branch information
kennytm authored Nov 17, 2018
2 parents a818165 + d12de8f commit db99aa8
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 db99aa8

Please sign in to comment.