mirror of
https://github.com/fafhrd91/actix-net
synced 2024-11-23 22:51:07 +01:00
fix(tls): resolve http imports
This commit is contained in:
parent
bd1467e928
commit
1a5d85ec8b
@ -109,7 +109,7 @@ async fn test_openssl_uri() {
|
||||
});
|
||||
|
||||
let connector = Connector::default().service();
|
||||
let addr = http::Uri::try_from(format!("https://localhost:{}", srv.port())).unwrap();
|
||||
let addr = http_0_2::Uri::try_from(format!("https://localhost:{}", srv.port())).unwrap();
|
||||
let con = connector.call(addr.into()).await.unwrap();
|
||||
assert_eq!(con.peer_addr().unwrap(), srv.addr());
|
||||
}
|
||||
@ -145,7 +145,7 @@ async fn test_rustls_uri() {
|
||||
});
|
||||
|
||||
let conn = Connector::default().service();
|
||||
let addr = http::Uri::try_from(format!("https://localhost:{}", srv.port())).unwrap();
|
||||
let addr = http_1::Uri::try_from(format!("https://localhost:{}", srv.port())).unwrap();
|
||||
let con = conn.call(addr.into()).await.unwrap();
|
||||
assert_eq!(con.peer_addr().unwrap(), srv.addr());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user