From b20c16df787e58e64ef9dd1f8b15567eb0d49f41 Mon Sep 17 00:00:00 2001 From: Franck Royer Date: Fri, 19 Feb 2021 09:57:46 +1100 Subject: [PATCH] Improving logging on failure --- swap/tests/testutils/mod.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/swap/tests/testutils/mod.rs b/swap/tests/testutils/mod.rs index 85a8fc30..ad2a3550 100644 --- a/swap/tests/testutils/mod.rs +++ b/swap/tests/testutils/mod.rs @@ -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) {