Skip to content

Commit 57b8be9

Browse files
committed
test: remove more flakiness from idle_tenure_extend_active_mining
1 parent ca137aa commit 57b8be9

File tree

1 file changed

+8
-1
lines changed
  • testnet/stacks-node/src/tests/signer

1 file changed

+8
-1
lines changed

testnet/stacks-node/src/tests/signer/v0.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3930,7 +3930,14 @@ fn idle_tenure_extend_active_mining() {
39303930
);
39313931
submit_tx(&http_origin, &contract_tx);
39323932

3933-
info!("----- Submitted deploy txs, mining BTC block -----");
3933+
// Wait for this transaction to be mined in a block
3934+
info!("----- Submitted deploy txs, waiting for block -----");
3935+
wait_for(60, || {
3936+
Ok(get_account(&http_origin, &deployer_addr).nonce > deployer_nonce)
3937+
})
3938+
.unwrap();
3939+
3940+
info!("----- Mining BTC block -----");
39343941

39353942
signer_test.mine_nakamoto_block(Duration::from_secs(30), true);
39363943
let mut last_response = signer_test.get_latest_block_response(slot_id);

0 commit comments

Comments
 (0)