File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
testnet/stacks-node/src/tests Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -9645,12 +9645,14 @@ fn nakamoto_lockup_events() {
9645
9645
wait_for ( 30 , || Ok ( get_stacks_height ( ) > height_before) ) . unwrap ( ) ;
9646
9646
}
9647
9647
9648
+ wait_for ( 30 , || {
9649
+ let blocks = test_observer:: get_blocks ( ) ;
9650
+ let block = blocks. last ( ) . unwrap ( ) ;
9651
+ Ok ( block. get ( "block_height" ) . unwrap ( ) . as_u64 ( ) . unwrap ( ) == unlock_height)
9652
+ } )
9653
+ . expect ( "Timed out waiting for test observer to reach unlock height" ) ;
9648
9654
let blocks = test_observer:: get_blocks ( ) ;
9649
9655
let block = blocks. last ( ) . unwrap ( ) ;
9650
- assert_eq ! (
9651
- block. get( "block_height" ) . unwrap( ) . as_u64( ) . unwrap( ) ,
9652
- unlock_height
9653
- ) ;
9654
9656
9655
9657
let events = block. get ( "events" ) . unwrap ( ) . as_array ( ) . unwrap ( ) ;
9656
9658
let mut found_event = false ;
You can’t perform that action at this time.
0 commit comments