mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-10-01 01:45:40 -04:00
test: Log state on failure
This commit is contained in:
parent
0b69573129
commit
49b8d19e41
@ -217,7 +217,7 @@ impl TestContext {
|
|||||||
let lock_tx_id = if let BobState::XmrRedeemed { tx_lock_id } = state {
|
let lock_tx_id = if let BobState::XmrRedeemed { tx_lock_id } = state {
|
||||||
tx_lock_id
|
tx_lock_id
|
||||||
} else {
|
} else {
|
||||||
panic!("Bob in unexpected state");
|
panic!("Bob in not in xmr redeemed state: {:?}", state);
|
||||||
};
|
};
|
||||||
|
|
||||||
let lock_tx_bitcoin_fee = self
|
let lock_tx_bitcoin_fee = self
|
||||||
@ -250,7 +250,7 @@ impl TestContext {
|
|||||||
let lock_tx_id = if let BobState::BtcRefunded(state4) = state {
|
let lock_tx_id = if let BobState::BtcRefunded(state4) = state {
|
||||||
state4.tx_lock_id()
|
state4.tx_lock_id()
|
||||||
} else {
|
} else {
|
||||||
panic!("Bob in unexpected state");
|
panic!("Bob in not in btc refunded state: {:?}", state);
|
||||||
};
|
};
|
||||||
let lock_tx_bitcoin_fee = self
|
let lock_tx_bitcoin_fee = self
|
||||||
.bob_bitcoin_wallet
|
.bob_bitcoin_wallet
|
||||||
@ -282,7 +282,7 @@ impl TestContext {
|
|||||||
let lock_tx_id = if let BobState::BtcPunished { tx_lock_id } = state {
|
let lock_tx_id = if let BobState::BtcPunished { tx_lock_id } = state {
|
||||||
tx_lock_id
|
tx_lock_id
|
||||||
} else {
|
} else {
|
||||||
panic!("Bob in unexpected state");
|
panic!("Bob in not in btc punished state: {:?}", state);
|
||||||
};
|
};
|
||||||
|
|
||||||
let lock_tx_bitcoin_fee = self
|
let lock_tx_bitcoin_fee = self
|
||||||
|
Loading…
Reference in New Issue
Block a user