Skip to content

Commit

Permalink
fix(tests): extend fresh-connection threshold
Browse files Browse the repository at this point in the history
This assert is failing with durations _just_ over the line, suggesting a timing issue.
  • Loading branch information
abonander authored Mar 22, 2024
1 parent e0a1f16 commit 0b91ea6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/any/pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
Expand Down

0 comments on commit 0b91ea6

Please sign in to comment.