Improving logging on failure

This commit is contained in:
Franck Royer 2021-02-19 09:57:46 +11:00 committed by Daniel Karzel
parent 644f4c1732
commit b20c16df78

View File

@ -144,7 +144,13 @@ impl TestContext {
.get_balance()
.await
.unwrap();
assert!(xmr_balance_after_swap <= self.alice_starting_balances.xmr - self.xmr_amount);
assert!(
xmr_balance_after_swap <= self.alice_starting_balances.xmr - self.xmr_amount,
"{} !< {} - {}",
xmr_balance_after_swap,
self.alice_starting_balances.xmr,
self.xmr_amount
);
}
pub async fn assert_alice_refunded(&mut self) {