Skip to content

Commit

Permalink
fix(tls): resolve http imports
Browse files Browse the repository at this point in the history
  • Loading branch information
robjtede committed Jan 17, 2024
1 parent bd1467e commit 1a5d85e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions actix-tls/tests/test_connect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand Down Expand Up @@ -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());
}
Expand Down

0 comments on commit 1a5d85e

Please sign in to comment.