Skip to content

Commit 6a46a0b

Browse files
committed
Increase connect timeout.
1 parent 03e729b commit 6a46a0b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/util/connection_pool.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ mod tests {
613613
fn test_options() -> Options {
614614
Options {
615615
idle_timeout: Duration::from_millis(100),
616-
connect_timeout: Duration::from_secs(2),
616+
connect_timeout: Duration::from_secs(5),
617617
max_connections: 32,
618618
on_connected: None,
619619
}
@@ -784,7 +784,7 @@ mod tests {
784784
.await?;
785785
let on_connected: OnConnected = Arc::new(|_, _| {
786786
Box::pin(async {
787-
tokio::time::sleep(Duration::from_secs(2)).await;
787+
tokio::time::sleep(Duration::from_secs(20)).await;
788788
Ok(())
789789
})
790790
});

0 commit comments

Comments
 (0)