Browse Source

update timeouts for test server

master
Nikolay Kim 7 months ago
parent
commit
a4ad5e6b69
2 changed files with 4 additions and 4 deletions
  1. +2
    -2
      src/test.rs
  2. +2
    -2
      test-server/src/lib.rs

+ 2
- 2
src/test.rs View File

@@ -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()
}
};


+ 2
- 2
test-server/src/lib.rs View File

@@ -77,7 +77,7 @@ pub fn test_server<F: ServiceFactory<TcpStream>>(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<F: ServiceFactory<TcpStream>>(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()
}
};


Loading…
Cancel
Save