Skip to content

Commit 1a5d85e

Browse files
committed
fix(tls): resolve http imports
1 parent bd1467e commit 1a5d85e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

actix-tls/tests/test_connect.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ async fn test_openssl_uri() {
109109
});
110110

111111
let connector = Connector::default().service();
112-
let addr = http::Uri::try_from(format!("https://localhost:{}", srv.port())).unwrap();
112+
let addr = http_0_2::Uri::try_from(format!("https://localhost:{}", srv.port())).unwrap();
113113
let con = connector.call(addr.into()).await.unwrap();
114114
assert_eq!(con.peer_addr().unwrap(), srv.addr());
115115
}
@@ -145,7 +145,7 @@ async fn test_rustls_uri() {
145145
});
146146

147147
let conn = Connector::default().service();
148-
let addr = http::Uri::try_from(format!("https://localhost:{}", srv.port())).unwrap();
148+
let addr = http_1::Uri::try_from(format!("https://localhost:{}", srv.port())).unwrap();
149149
let con = conn.call(addr.into()).await.unwrap();
150150
assert_eq!(con.peer_addr().unwrap(), srv.addr());
151151
}

0 commit comments

Comments
 (0)