alice::SwapFactory should be consumed once a swap is returned

This commit is contained in:
Franck Royer 2021-01-19 15:03:30 +11:00
parent 9b32409b8d
commit b21dc03ed0
No known key found for this signature in database
GPG key ID: A82ED75A8DFC50A4
8 changed files with 37 additions and 45 deletions

View file

@ -4,7 +4,7 @@ pub mod testutils;
#[tokio::test]
async fn given_alice_restarts_after_encsig_is_learned_resume_swap() {
testutils::setup_test(|ctx| async move {
testutils::setup_test(|mut ctx| async move {
let alice_swap = ctx.new_swap_as_alice().await;
let bob_swap = ctx.new_swap_as_bob().await;