Improve assert message

This commit is contained in:
Michael Vines 2018-07-28 10:35:16 -07:00 committed by Grimes
parent 81db333490
commit 029e2db2cf
1 changed files with 6 additions and 1 deletions

View File

@ -69,7 +69,12 @@ fn sample_tx_count(
loop {
let tx_count = client.transaction_count();
assert!(tx_count >= initial_tx_count);
assert!(
tx_count >= initial_tx_count,
"expected tx_count({}) >= initial_tx_count({})",
tx_count,
initial_tx_count
);
let duration = now.elapsed();
now = Instant::now();
let sample = tx_count - initial_tx_count;