upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/tests/sync/metrics.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/sync/metrics.rs')
-rw-r--r--tests/sync/metrics.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/sync/metrics.rs b/tests/sync/metrics.rs
index 26d379d..14e1dfd 100644
--- a/tests/sync/metrics.rs
+++ b/tests/sync/metrics.rs
@@ -32,7 +32,7 @@ async fn test_prometheus_format_valid() {
32 let relay = TestRelay::start().await; 32 let relay = TestRelay::start().await;
33 tokio::time::sleep(Duration::from_millis(500)).await; 33 tokio::time::sleep(Duration::from_millis(500)).await;
34 34
35 let metrics = fetch_metrics(&relay.url()) 35 let metrics = fetch_metrics(relay.url())
36 .await 36 .await
37 .expect("Failed to fetch metrics"); 37 .expect("Failed to fetch metrics");
38 38
@@ -67,7 +67,7 @@ async fn test_metrics_availability_during_sync() {
67 67
68 // Make multiple metrics requests while sync is active 68 // Make multiple metrics requests while sync is active
69 for i in 0..3 { 69 for i in 0..3 {
70 let metrics = fetch_metrics(&sync_relay.url()).await; 70 let metrics = fetch_metrics(sync_relay.url()).await;
71 assert!( 71 assert!(
72 metrics.is_ok(), 72 metrics.is_ok(),
73 "Metrics request {} should succeed during sync", 73 "Metrics request {} should succeed during sync",
@@ -135,7 +135,7 @@ async fn test_metric_values_are_numeric() {
135 let relay = TestRelay::start().await; 135 let relay = TestRelay::start().await;
136 tokio::time::sleep(Duration::from_millis(500)).await; 136 tokio::time::sleep(Duration::from_millis(500)).await;
137 137
138 let metrics = fetch_metrics(&relay.url()) 138 let metrics = fetch_metrics(relay.url())
139 .await 139 .await
140 .expect("Should fetch metrics"); 140 .expect("Should fetch metrics");
141 141