1
0
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:
Rob Ede 2024-01-17 04:29:44 +00:00
parent bd1467e928
commit 1a5d85ec8b
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933

View File

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