@@ -3750,6 +3750,7 @@ fn follower_bootup_across_multiple_cycles() {
3750
3750
3751
3751
let ( mut naka_conf, _miner_account) = naka_neon_integration_conf ( None ) ;
3752
3752
naka_conf. miner . wait_on_interim_blocks = Duration :: from_secs ( 1 ) ;
3753
+ naka_conf. node . pox_sync_sample_secs = 5 ;
3753
3754
naka_conf. burnchain . max_rbf = 10_000_000 ;
3754
3755
3755
3756
let sender_sk = Secp256k1PrivateKey :: new ( ) ;
@@ -6009,15 +6010,18 @@ fn signer_chainstate() {
6009
6010
. unwrap ( )
6010
6011
. stacks_block_height ;
6011
6012
let prom_http_origin = format ! ( "http://{}" , prom_bind) ;
6012
- let client = reqwest:: blocking:: Client :: new ( ) ;
6013
- let res = client
6014
- . get ( & prom_http_origin)
6015
- . send ( )
6016
- . unwrap ( )
6017
- . text ( )
6018
- . unwrap ( ) ;
6019
- let expected_result = format ! ( "stacks_node_stacks_tip_height {block_height_pre_3_0}" ) ;
6020
- assert ! ( res. contains( & expected_result) ) ;
6013
+ wait_for ( 10 , || {
6014
+ let client = reqwest:: blocking:: Client :: new ( ) ;
6015
+ let res = client
6016
+ . get ( & prom_http_origin)
6017
+ . send ( )
6018
+ . unwrap ( )
6019
+ . text ( )
6020
+ . unwrap ( ) ;
6021
+ let expected_result = format ! ( "stacks_node_stacks_tip_height {block_height_pre_3_0}" ) ;
6022
+ Ok ( res. contains ( & expected_result) )
6023
+ } )
6024
+ . expect ( "Failed waiting for prometheus metrics to update" )
6021
6025
}
6022
6026
6023
6027
info ! ( "Nakamoto miner started..." ) ;
@@ -6619,15 +6623,18 @@ fn continue_tenure_extend() {
6619
6623
#[ cfg( feature = "monitoring_prom" ) ]
6620
6624
{
6621
6625
let prom_http_origin = format ! ( "http://{}" , prom_bind) ;
6622
- let client = reqwest:: blocking:: Client :: new ( ) ;
6623
- let res = client
6624
- . get ( & prom_http_origin)
6625
- . send ( )
6626
- . unwrap ( )
6627
- . text ( )
6628
- . unwrap ( ) ;
6629
- let expected_result = format ! ( "stacks_node_stacks_tip_height {block_height_pre_3_0}" ) ;
6630
- assert ! ( res. contains( & expected_result) ) ;
6626
+ wait_for ( 10 , || {
6627
+ let client = reqwest:: blocking:: Client :: new ( ) ;
6628
+ let res = client
6629
+ . get ( & prom_http_origin)
6630
+ . send ( )
6631
+ . unwrap ( )
6632
+ . text ( )
6633
+ . unwrap ( ) ;
6634
+ let expected_result = format ! ( "stacks_node_stacks_tip_height {block_height_pre_3_0}" ) ;
6635
+ Ok ( res. contains ( & expected_result) )
6636
+ } )
6637
+ . expect ( "Prometheus metrics did not update" ) ;
6631
6638
}
6632
6639
6633
6640
info ! ( "Nakamoto miner started..." ) ;
@@ -6815,15 +6822,19 @@ fn continue_tenure_extend() {
6815
6822
#[ cfg( feature = "monitoring_prom" ) ]
6816
6823
{
6817
6824
let prom_http_origin = format ! ( "http://{}" , prom_bind) ;
6818
- let client = reqwest:: blocking:: Client :: new ( ) ;
6819
- let res = client
6820
- . get ( & prom_http_origin)
6821
- . send ( )
6822
- . unwrap ( )
6823
- . text ( )
6824
- . unwrap ( ) ;
6825
- let expected_result = format ! ( "stacks_node_stacks_tip_height {}" , tip. stacks_block_height) ;
6826
- assert ! ( res. contains( & expected_result) ) ;
6825
+ wait_for ( 10 , || {
6826
+ let client = reqwest:: blocking:: Client :: new ( ) ;
6827
+ let res = client
6828
+ . get ( & prom_http_origin)
6829
+ . send ( )
6830
+ . unwrap ( )
6831
+ . text ( )
6832
+ . unwrap ( ) ;
6833
+ let expected_result =
6834
+ format ! ( "stacks_node_stacks_tip_height {}" , tip. stacks_block_height) ;
6835
+ Ok ( res. contains ( & expected_result) )
6836
+ } )
6837
+ . expect ( "Prometheus metrics did not update" ) ;
6827
6838
}
6828
6839
6829
6840
coord_channel
0 commit comments