From 0b91ea68e5dbc8ecffab3130f8283c6a2b77bd16 Mon Sep 17 00:00:00 2001 From: Austin Bonander Date: Fri, 22 Mar 2024 15:50:54 -0700 Subject: [PATCH] fix(tests): extend fresh-connection threshold This assert is failing with durations _just_ over the line, suggesting a timing issue. --- tests/any/pool.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/any/pool.rs b/tests/any/pool.rs index 901258a5..5497ad30 100644 --- a/tests/any/pool.rs +++ b/tests/any/pool.rs @@ -270,7 +270,7 @@ async fn test_connection_maintenance() -> anyhow::Result<()> { .take() .expect("expected a connection from the pool"); assert!( - meta.age < Duration::from_secs(1), + meta.age < Duration::from_secs(2), "expected a fresh connection (age {:?})", meta.age );