File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
testnet/stacks-node/src/tests/signer Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -5236,14 +5236,12 @@ fn reorg_locally_accepted_blocks_across_tenures_fails() {
5236
5236
. stacks_client
5237
5237
. get_peer_info ( )
5238
5238
. 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 ) ;
5241
5239
next_block_and (
5242
5240
& mut signer_test. running_nodes . btc_regtest_controller ,
5243
5241
60 ,
5244
5242
|| {
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 )
5247
5245
} ,
5248
5246
)
5249
5247
. unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments