From a4ad5e6b69e1f9205d76ff40d56260bc125bbd08 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Wed, 25 Dec 2019 20:52:20 +0400 Subject: [PATCH] update timeouts for test server --- src/test.rs | 4 ++-- test-server/src/lib.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test.rs b/src/test.rs index 9c06b7337..bb0d05cf7 100644 --- a/src/test.rs +++ b/src/test.rs @@ -730,7 +730,7 @@ where .map_err(|e| log::error!("Can not set alpn protocol: {:?}", e)); Connector::new() .conn_lifetime(time::Duration::from_secs(0)) - .timeout(time::Duration::from_millis(3000)) + .timeout(time::Duration::from_millis(30000)) .ssl(builder.build()) .finish() } @@ -738,7 +738,7 @@ where { Connector::new() .conn_lifetime(time::Duration::from_secs(0)) - .timeout(time::Duration::from_millis(3000)) + .timeout(time::Duration::from_millis(30000)) .finish() } }; diff --git a/test-server/src/lib.rs b/test-server/src/lib.rs index ff564c3e1..27326c67a 100644 --- a/test-server/src/lib.rs +++ b/test-server/src/lib.rs @@ -77,7 +77,7 @@ pub fn test_server>(factory: F) -> TestServer { .map_err(|e| log::error!("Can not set alpn protocol: {:?}", e)); Connector::new() .conn_lifetime(time::Duration::from_secs(0)) - .timeout(time::Duration::from_millis(3000)) + .timeout(time::Duration::from_millis(30000)) .ssl(builder.build()) .finish() } @@ -85,7 +85,7 @@ pub fn test_server>(factory: F) -> TestServer { { Connector::new() .conn_lifetime(time::Duration::from_secs(0)) - .timeout(time::Duration::from_millis(3000)) + .timeout(time::Duration::from_millis(30000)) .finish() } };