mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-12-29 21:00:54 +00:00
fix(tests): extend fresh-connection threshold
This assert is failing with durations _just_ over the line, suggesting a timing issue.
This commit is contained in:
parent
e0a1f1633c
commit
0b91ea68e5
@ -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
|
||||
);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user