From 0259bf8729387ff10f5888542a301429b261446e Mon Sep 17 00:00:00 2001 From: Lucio Franco Date: Tue, 7 Nov 2023 16:27:27 -0500 Subject: [PATCH] fix basic_metrics test --- libsql-server/tests/common/mod.rs | 1 + libsql-server/tests/standalone/mod.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/libsql-server/tests/common/mod.rs b/libsql-server/tests/common/mod.rs index 8eb6d7a34d..3b54b8b1f3 100644 --- a/libsql-server/tests/common/mod.rs +++ b/libsql-server/tests/common/mod.rs @@ -38,6 +38,7 @@ impl MetricsSnapshot { } pub fn get_counter(&self, metric_name: &str) -> Option { + println!("{:?}", self.snapshot); for (key, (_, _, val)) in &self.snapshot { if key.kind() == MetricKind::Counter && key.key().name() == metric_name { match val { diff --git a/libsql-server/tests/standalone/mod.rs b/libsql-server/tests/standalone/mod.rs index e26cf52c44..697324f531 100644 --- a/libsql-server/tests/standalone/mod.rs +++ b/libsql-server/tests/standalone/mod.rs @@ -78,7 +78,7 @@ fn basic_metrics() { )); snapshot_metrics() - .assert_gauge("libsql_server_current_frame_no", 2.0) + .assert_gauge("libsql_server_concurrent_connections", 0.0) .assert_counter("libsql_server_libsql_execute_program", 3); Ok(())