Skip to content

Commit 640fd6d

Browse files
committed
test: wait for burn block change instead of block commit
1 parent e59dfc8 commit 640fd6d

File tree

1 file changed

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

1 file changed

+2
-4
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5236,14 +5236,12 @@ fn reorg_locally_accepted_blocks_across_tenures_fails() {
52365236
.stacks_client
52375237
.get_peer_info()
52385238
.expect("Failed to get peer info");
5239-
let commits_submitted = signer_test.running_nodes.commits_submitted.clone();
5240-
let commits_before = commits_submitted.load(Ordering::SeqCst);
52415239
next_block_and(
52425240
&mut signer_test.running_nodes.btc_regtest_controller,
52435241
60,
52445242
|| {
5245-
let commits_count = commits_submitted.load(Ordering::SeqCst);
5246-
Ok(commits_count > commits_before)
5243+
let info = signer_test.stacks_client.get_peer_info().unwrap();
5244+
Ok(info.burn_block_height > info_before.burn_block_height)
52475245
},
52485246
)
52495247
.unwrap();

0 commit comments

Comments
 (0)