From 4be1f090b1e5c50162e83974ef8b98f0280a6312 Mon Sep 17 00:00:00 2001 From: Lucio Franco Date: Tue, 7 Nov 2023 17:49:58 -0500 Subject: [PATCH] sleep in basic_metrics for ci --- libsql-server/tests/standalone/mod.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libsql-server/tests/standalone/mod.rs b/libsql-server/tests/standalone/mod.rs index 6b6f4ef3dc..a84ac37972 100644 --- a/libsql-server/tests/standalone/mod.rs +++ b/libsql-server/tests/standalone/mod.rs @@ -4,7 +4,7 @@ use crate::common::{net::SimServer, snapshot_metrics}; use super::common; -use std::sync::Arc; +use std::{sync::Arc, time::Duration}; use libsql::{Database, Value}; use tempfile::tempdir; @@ -77,6 +77,8 @@ fn basic_metrics() { libsql::Value::Integer(1) )); + tokio::time::sleep(Duration::from_secs(1)).await; + snapshot_metrics().assert_counter("libsql_server_libsql_execute_program", 3); Ok(())