Skip to content

Commit 0b91ea6

Browse files
authored
fix(tests): extend fresh-connection threshold
This assert is failing with durations _just_ over the line, suggesting a timing issue.
1 parent e0a1f16 commit 0b91ea6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/any/pool.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ async fn test_connection_maintenance() -> anyhow::Result<()> {
270270
.take()
271271
.expect("expected a connection from the pool");
272272
assert!(
273-
meta.age < Duration::from_secs(1),
273+
meta.age < Duration::from_secs(2),
274274
"expected a fresh connection (age {:?})",
275275
meta.age
276276
);

0 commit comments

Comments
 (0)