Skip to content

Commit 89920fe

Browse files
committed
fix: incorrect block wait logic, test logic ordering
1 parent 8f4d08e commit 89920fe

File tree

1 file changed

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

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3918,22 +3918,22 @@ fn tx_replay_failsafe() {
39183918

39193919
signer_test.mine_nakamoto_block(Duration::from_secs(30), true);
39203920

3921-
signer_test
3922-
.wait_for_signer_state_check(30, |state| Ok(state.get_tx_replay_set().is_some()))
3923-
.expect("Expected replay set to still be set");
3924-
39253921
wait_for(30, || {
39263922
let tip = get_chain_info(&conf);
39273923
Ok(tip.stacks_tip_height > tip_after_fork.stacks_tip_height + 1)
39283924
})
39293925
.expect("Timed out waiting for a TenureChange block to be mined");
39303926

3927+
signer_test
3928+
.wait_for_signer_state_check(30, |state| Ok(state.get_tx_replay_set().is_some()))
3929+
.expect("Expected replay set to still be set");
3930+
39313931
info!("---- Mining a third tenure ----");
39323932
signer_test.mine_nakamoto_block(Duration::from_secs(30), true);
39333933

39343934
wait_for(30, || {
39353935
let tip = get_chain_info(&conf);
3936-
Ok(tip.stacks_tip_height > tip_after_fork.stacks_tip_height + 1)
3936+
Ok(tip.stacks_tip_height > tip_after_fork.stacks_tip_height + 2)
39373937
})
39383938
.expect("Timed out waiting for a TenureChange block to be mined");
39393939

0 commit comments

Comments
 (0)