mirror of
https://github.com/ntex-rs/ntex.git
synced 2025-04-04 05:17:39 +03:00
fix clieent timeout for http client test
This commit is contained in:
parent
6bb7e9f0ec
commit
976cd0a153
1 changed files with 2 additions and 1 deletions
|
@ -9,6 +9,7 @@ use ntex::http::client::{Client, Connector};
|
|||
use ntex::http::test::server as test_server;
|
||||
use ntex::http::{HttpService, Version};
|
||||
use ntex::service::{map_config, pipeline_factory, ServiceFactory};
|
||||
use ntex::time::Seconds;
|
||||
use ntex::web::{self, dev::AppConfig, App, HttpResponse};
|
||||
|
||||
fn ssl_acceptor() -> SslAcceptor {
|
||||
|
@ -69,7 +70,7 @@ async fn test_connection_reuse_h2() {
|
|||
.finish();
|
||||
|
||||
// req 1
|
||||
let request = client.get(srv.surl("/")).timeout(10).send();
|
||||
let request = client.get(srv.surl("/")).timeout(Seconds(10)).send();
|
||||
let response = request.await.unwrap();
|
||||
assert!(response.status().is_success());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue