Use assert_bob_punished

This commit is contained in:
patrini32 2024-06-05 15:34:20 +03:00 committed by patrini32
parent 789f25be3f
commit 1c6e757f02

View File

@ -76,7 +76,7 @@ async fn alice_manually_punishes_after_bob_dead_and_bob_cancels() {
let state =
cli::cancel_and_refund(bob_swap_id, bob_swap.bitcoin_wallet, bob_swap.db).await?;
assert!(matches!(state, BobState::BtcPunished { .. }));
ctx.assert_bob_punished(state).await;
Ok(())
})
.await;