Skip to content

Commit

Permalink
fix basic_metrics test
Browse files Browse the repository at this point in the history
  • Loading branch information
LucioFranco committed Nov 7, 2023
1 parent 54e1e87 commit 0259bf8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions libsql-server/tests/common/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ impl MetricsSnapshot {
}

pub fn get_counter(&self, metric_name: &str) -> Option<u64> {
println!("{:?}", self.snapshot);
for (key, (_, _, val)) in &self.snapshot {
if key.kind() == MetricKind::Counter && key.key().name() == metric_name {
match val {
Expand Down
2 changes: 1 addition & 1 deletion libsql-server/tests/standalone/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
Expand Down

0 comments on commit 0259bf8

Please sign in to comment.