mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-07-31 02:29:03 -04:00
Allow blockchain calls to fail
Prior to this change, functions could not fail early on permanent errors eg. parsing a url. Merged error enums.
This commit is contained in:
parent
a0ef1f96ec
commit
180e778df9
6 changed files with 43 additions and 53 deletions
|
@ -155,11 +155,7 @@ impl TestContext {
|
|||
let swap_handle = self.alice_swap_handle.recv().await.unwrap();
|
||||
let state = swap_handle.await.unwrap();
|
||||
|
||||
assert!(
|
||||
matches!(state, AliceState::XmrRefunded),
|
||||
"Alice state is not XmrRefunded: {}",
|
||||
state
|
||||
);
|
||||
assert!(matches!(state, AliceState::XmrRefunded));
|
||||
|
||||
self.alice_bitcoin_wallet
|
||||
.sync_wallet()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue