Skip to content

Commit 98fa647

Browse files
committed
Cleanup reorg_attempts_activity_timeout_exceeded test
Signed-off-by: Jacinta Ferrant <[email protected]>
1 parent 98f3f83 commit 98fa647

File tree

1 file changed

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

1 file changed

+4
-9
lines changed

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

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11640,19 +11640,14 @@ fn reorg_attempts_activity_timeout_exceeded() {
1164011640
.expect("FAIL: Timed out waiting for block proposal rejections of N'");
1164111641

1164211642
info!("------------------------- Ensure chain halts -------------------------");
11643+
// The signer should automatically attempt to mine a new block once the signers eventually tell it to abandon the previous block
11644+
// It will reject it though because the block proposal timeout is exceeded and its first block proposal arrived AFTER the reorg activity timeout
1164311645
assert!(wait_for(30, || {
1164411646
let chain_info = get_chain_info(&signer_test.running_nodes.conf);
11645-
Ok(chain_info.stacks_tip_height > chain_before.stacks_tip_height)
11647+
assert_eq!(chain_info.stacks_tip_height, chain_before.stacks_tip_height);
11648+
Ok(false)
1164611649
})
1164711650
.is_err());
11648-
11649-
// The signer should automatically attempt to mine a new block once the signers eventually tell it to abandon the previous block
11650-
// It will accept reject it though because the block proposal timeout is exceeded and its first block proposal arrived AFTER the reorg activity timeout
11651-
let chain_after = get_chain_info(&signer_test.running_nodes.conf);
11652-
assert_eq!(
11653-
chain_after.stacks_tip_height,
11654-
block_proposal_n.block.header.chain_length
11655-
);
1165611651
signer_test.shutdown();
1165711652
}
1165811653

0 commit comments

Comments
 (0)