Skip to content

Commit

Permalink
sleeps are no longer necessary!
Browse files Browse the repository at this point in the history
  • Loading branch information
djordon committed Nov 18, 2024
1 parent bb02a92 commit 7567635
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions signer/tests/integration/transaction_coordinator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1410,7 +1410,6 @@ async fn sign_bitcoin_transaction() {
.iter()
.map(|(_, db, _, _)| testing::storage::wait_for_chain_tip(db, chain_tip));
futures::future::join_all(db_update_futs).await;
tokio::time::sleep(Duration::from_secs(2)).await;

// Now we wait for DKG to successfully complete. For that we just watch
// the dkg_shares table. Also, we need to get the signers' scriptPubKey
Expand Down Expand Up @@ -1445,7 +1444,6 @@ async fn sign_bitcoin_transaction() {
faucet.generate_blocks(1);

wait_for_signers(&signers).await;
tokio::time::sleep(Duration::from_secs(2)).await;

// =========================================================================
// Step 6 - Make a proper deposit
Expand Down Expand Up @@ -1489,7 +1487,6 @@ async fn sign_bitcoin_transaction() {
faucet.generate_blocks(1);

wait_for_signers(&signers).await;
tokio::time::sleep(Duration::from_secs(2)).await;

let (ctx, _, _, _) = signers.first().unwrap();
let mut txids = ctx.bitcoin_client.inner_client().get_raw_mempool().unwrap();
Expand All @@ -1498,7 +1495,6 @@ async fn sign_bitcoin_transaction() {
let block_hash = faucet.generate_blocks(1).pop().unwrap();

wait_for_signers(&signers).await;
tokio::time::sleep(Duration::from_secs(2)).await;

// =========================================================================
// Step 8 - Assertions
Expand Down

0 comments on commit 7567635

Please sign in to comment.