Skip to content

Commit

Permalink
better error for benchmarking
Browse files Browse the repository at this point in the history
  • Loading branch information
Eh2406 committed Nov 19, 2018
1 parent e3b44cc commit fd06af4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/cargo/core/resolver/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@ impl ResolverProgress {
// with all the algorithm improvements.
// If any of them are removed then it takes more than I am willing to measure.
// So lets fail the test fast if we have ben running for two long.
debug_assert!(self.ticks < 50_000);
debug_assert!(
self.ticks < 50_000,
"got to 50_000 ticks in {:?}",
self.start.elapsed()
);
// The largest test in our suite takes less then 30 sec
// with all the improvements to how fast a tick can go.
// If any of them are removed then it takes more than I am willing to measure.
Expand Down

0 comments on commit fd06af4

Please sign in to comment.