From afc52456bb1cfba4f9e6a4e99a4bc2ff69b83864 Mon Sep 17 00:00:00 2001 From: TheCharlatan Date: Thu, 28 Jul 2022 14:59:42 +0200 Subject: [PATCH] Test: extra sleep to allow checkpoint write --- tests/swap.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/swap.rs b/tests/swap.rs index 99a288a7d..e2ca0fb1f 100644 --- a/tests/swap.rs +++ b/tests/swap.rs @@ -894,6 +894,9 @@ async fn run_restore_checkpoint_bob_pre_buy_alice_pre_lock( println!("waiting for the bitcoin funding info to clear"); retry_until_funding_info_cleared(swap_id.clone(), cli_bob_needs_funding_args.clone()).await; + // wait a bit to ensure the checkpoints are written + tokio::time::sleep(time::Duration::from_secs(1)).await; + // kill all the daemons and start them again cleanup_processes(vec![farcasterd_maker, farcasterd_taker]); let (farcasterd_maker, _, farcasterd_taker, _) = setup_clients().await;