mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-09-22 05:44:43 -04:00
Update alice_and_bob_refund_using_cancel_and_refund_command_timelock_not_expired.rs
This commit is contained in:
parent
32251240a5
commit
715c2c917b
1 changed files with 6 additions and 3 deletions
|
@ -43,8 +43,9 @@ async fn given_alice_and_bob_manually_cancel_when_timelock_not_expired_errors()
|
||||||
.await
|
.await
|
||||||
.unwrap_err();
|
.unwrap_err();
|
||||||
|
|
||||||
assert!(error.to_string().contains("Cannot cancel swap because the cancel timelock has not expired yet"));
|
assert!(error
|
||||||
|
.to_string()
|
||||||
|
.contains("Cannot cancel swap because the cancel timelock has not expired yet"));
|
||||||
|
|
||||||
ctx.restart_alice().await;
|
ctx.restart_alice().await;
|
||||||
let alice_swap = ctx.alice_next_swap().await;
|
let alice_swap = ctx.alice_next_swap().await;
|
||||||
|
@ -71,7 +72,9 @@ async fn given_alice_and_bob_manually_cancel_when_timelock_not_expired_errors()
|
||||||
let error = cli::refund(bob_swap.id, bob_swap.bitcoin_wallet, bob_swap.db)
|
let error = cli::refund(bob_swap.id, bob_swap.bitcoin_wallet, bob_swap.db)
|
||||||
.await
|
.await
|
||||||
.unwrap_err();
|
.unwrap_err();
|
||||||
assert!(error.to_string().contains("Cannot refund swap because the cancel timelock has not expired yet"));
|
assert!(error
|
||||||
|
.to_string()
|
||||||
|
.contains("Cannot refund swap because the cancel timelock has not expired yet"));
|
||||||
|
|
||||||
let (bob_swap, _) = ctx
|
let (bob_swap, _) = ctx
|
||||||
.stop_and_resume_bob_from_db(bob_join_handle, swap_id)
|
.stop_and_resume_bob_from_db(bob_join_handle, swap_id)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue