Skip to content

Commit f9e735b

Browse files
authored
Merge pull request #5301 from stacks-network/chore/more-ci-fixes-2
Add pox_sync_sample_secs to follower_bootup_across_multiple_cycles an…
2 parents cd702e7 + bae605d commit f9e735b

File tree

1 file changed

+38
-27
lines changed

1 file changed

+38
-27
lines changed

testnet/stacks-node/src/tests/nakamoto_integrations.rs

Lines changed: 38 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -3750,6 +3750,7 @@ fn follower_bootup_across_multiple_cycles() {
37503750

37513751
let (mut naka_conf, _miner_account) = naka_neon_integration_conf(None);
37523752
naka_conf.miner.wait_on_interim_blocks = Duration::from_secs(1);
3753+
naka_conf.node.pox_sync_sample_secs = 5;
37533754
naka_conf.burnchain.max_rbf = 10_000_000;
37543755

37553756
let sender_sk = Secp256k1PrivateKey::new();
@@ -6009,15 +6010,18 @@ fn signer_chainstate() {
60096010
.unwrap()
60106011
.stacks_block_height;
60116012
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")
60216025
}
60226026

60236027
info!("Nakamoto miner started...");
@@ -6619,15 +6623,18 @@ fn continue_tenure_extend() {
66196623
#[cfg(feature = "monitoring_prom")]
66206624
{
66216625
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");
66316638
}
66326639

66336640
info!("Nakamoto miner started...");
@@ -6815,15 +6822,19 @@ fn continue_tenure_extend() {
68156822
#[cfg(feature = "monitoring_prom")]
68166823
{
68176824
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");
68276838
}
68286839

68296840
coord_channel

0 commit comments

Comments
 (0)