@@ -1490,13 +1490,15 @@ fn simple_neon_integration() {
1490
1490
{
1491
1491
let prom_http_origin = format ! ( "http://{}" , prom_bind) ;
1492
1492
let client = reqwest:: blocking:: Client :: new ( ) ;
1493
+ let info = get_chain_info_result ( & naka_conf) . unwrap ( ) ;
1494
+ let stacks_tip_height = info. stacks_tip_height ;
1493
1495
let res = client
1494
1496
. get ( & prom_http_origin)
1495
1497
. send ( )
1496
1498
. unwrap ( )
1497
1499
. text ( )
1498
1500
. unwrap ( ) ;
1499
- let expected_result = format ! ( "stacks_node_stacks_tip_height {block_height_pre_3_0 }" ) ;
1501
+ let expected_result = format ! ( "stacks_node_stacks_tip_height {stacks_tip_height }" ) ;
1500
1502
assert ! ( res. contains( & expected_result) ) ;
1501
1503
}
1502
1504
@@ -5979,33 +5981,6 @@ fn signer_chainstate() {
5979
5981
let burnchain = naka_conf. get_burnchain ( ) ;
5980
5982
let sortdb = burnchain. open_sortition_db ( true ) . unwrap ( ) ;
5981
5983
5982
- // query for prometheus metrics
5983
- #[ cfg( feature = "monitoring_prom" ) ]
5984
- {
5985
- let ( chainstate, _) = StacksChainState :: open (
5986
- naka_conf. is_mainnet ( ) ,
5987
- naka_conf. burnchain . chain_id ,
5988
- & naka_conf. get_chainstate_path_str ( ) ,
5989
- None ,
5990
- )
5991
- . unwrap ( ) ;
5992
- let block_height_pre_3_0 =
5993
- NakamotoChainState :: get_canonical_block_header ( chainstate. db ( ) , & sortdb)
5994
- . unwrap ( )
5995
- . unwrap ( )
5996
- . stacks_block_height ;
5997
- let prom_http_origin = format ! ( "http://{}" , prom_bind) ;
5998
- let client = reqwest:: blocking:: Client :: new ( ) ;
5999
- let res = client
6000
- . get ( & prom_http_origin)
6001
- . send ( )
6002
- . unwrap ( )
6003
- . text ( )
6004
- . unwrap ( ) ;
6005
- let expected_result = format ! ( "stacks_node_stacks_tip_height {block_height_pre_3_0}" ) ;
6006
- assert ! ( res. contains( & expected_result) ) ;
6007
- }
6008
-
6009
5984
info ! ( "Nakamoto miner started..." ) ;
6010
5985
blind_signer ( & naka_conf, & signers, proposals_submitted. clone ( ) ) ;
6011
5986
@@ -6601,21 +6576,6 @@ fn continue_tenure_extend() {
6601
6576
. unwrap ( )
6602
6577
. stacks_block_height ;
6603
6578
6604
- // query for prometheus metrics
6605
- #[ cfg( feature = "monitoring_prom" ) ]
6606
- {
6607
- let prom_http_origin = format ! ( "http://{}" , prom_bind) ;
6608
- let client = reqwest:: blocking:: Client :: new ( ) ;
6609
- let res = client
6610
- . get ( & prom_http_origin)
6611
- . send ( )
6612
- . unwrap ( )
6613
- . text ( )
6614
- . unwrap ( ) ;
6615
- let expected_result = format ! ( "stacks_node_stacks_tip_height {block_height_pre_3_0}" ) ;
6616
- assert ! ( res. contains( & expected_result) ) ;
6617
- }
6618
-
6619
6579
info ! ( "Nakamoto miner started..." ) ;
6620
6580
blind_signer ( & naka_conf, & signers, proposals_submitted) ;
6621
6581
0 commit comments