Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix miner_recovers_when_broadcast_delay_across_tenures_occurs: Wait for the tip to update before proceeding #5394

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion testnet/stacks-node/src/tests/signer/v0.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4841,7 +4841,13 @@ fn miner_recovers_when_broadcast_block_delay_across_tenures_occurs() {

// a tenure has begun, so wait until we mine a block
wait_for(30, || {
Ok(mined_blocks.load(Ordering::SeqCst) > blocks_before)
let new_height = signer_test
.stacks_client
.get_peer_info()
.expect("Failed to get peer info")
.stacks_tip_height;
Ok(mined_blocks.load(Ordering::SeqCst) > blocks_before
&& new_height > info_before.stacks_tip_height)
})
.expect("Timed out waiting for block to be mined and processed");

Expand Down
Loading