Skip to content

Commit 07b39fb

Browse files
committed
fix: test flakiness, ensure proposal is emitted at the correct time
1 parent 4dce8bf commit 07b39fb

File tree

1 file changed

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

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13195,8 +13195,9 @@ fn interrupt_miner_on_new_stacks_tip() {
1319513195

1319613196
info!("------------------------- Block N is Announced -------------------------");
1319713197

13198-
let proposals_before = proposed_blocks_rl2.load(Ordering::SeqCst);
13198+
TEST_BROADCAST_PROPOSAL_STALL.set(true);
1319913199
TEST_P2P_BROADCAST_STALL.set(false);
13200+
let proposals_before = proposed_blocks_rl2.load(Ordering::SeqCst);
1320013201

1320113202
// Wait for RL2's tip to advance to the last block
1320213203
wait_for(30, || {
@@ -13212,6 +13213,7 @@ fn interrupt_miner_on_new_stacks_tip() {
1321213213

1321313214
info!("Stop signers from ignoring proposals");
1321413215
TEST_IGNORE_ALL_BLOCK_PROPOSALS.set(Vec::new());
13216+
TEST_BROADCAST_PROPOSAL_STALL.set(false);
1321513217

1321613218
wait_for(30, || {
1321713219
Ok(proposed_blocks_rl2.load(Ordering::SeqCst) > proposals_before)

0 commit comments

Comments
 (0)