work in review comments

This commit is contained in:
Daniel Karzel 2021-02-04 10:43:02 +11:00
parent c930ad84a4
commit 86290649e7
2 changed files with 8 additions and 7 deletions

View file

@ -19,7 +19,7 @@ async fn given_bob_manually_cancels_when_timelock_not_expired_errors() {
let (bob_swap, bob_join_handle) = ctx.stop_and_resume_bob_from_db(bob_join_handle).await;
assert!(matches!(bob_swap.state, BobState::BtcLocked { .. }));
// Bob manually cancels
// Bob tries but fails to manually cancel
let result = bob::cancel(
bob_swap.swap_id,
bob_swap.state,
@ -37,7 +37,7 @@ async fn given_bob_manually_cancels_when_timelock_not_expired_errors() {
let (bob_swap, bob_join_handle) = ctx.stop_and_resume_bob_from_db(bob_join_handle).await;
assert!(matches!(bob_swap.state, BobState::BtcLocked { .. }));
// Bob manually refunds
// Bob tries but fails to manually refund
bob::refund(
bob_swap.swap_id,
bob_swap.state,