Skip to content

Commit

Permalink
sleep in basic_metrics for ci
Browse files Browse the repository at this point in the history
  • Loading branch information
LucioFranco committed Nov 7, 2023
1 parent 7d5d86c commit 4be1f09
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libsql-server/tests/standalone/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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(())
Expand Down

0 comments on commit 4be1f09

Please sign in to comment.