From 988aad9c34d2fa6e2ee549c7c60f4de966c4e57c Mon Sep 17 00:00:00 2001 From: Alex Rudy Date: Tue, 10 Dec 2024 20:42:02 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20upgrades=20test=20doesn=E2=80=99t=20requ?= =?UTF-8?q?ire=20TLS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remove TLS from client configuration. - Specify list of required features in Cargo.toml --- Cargo.toml | 5 +++++ tests/upgrades.rs | 2 -- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 030e4e3..c341d9a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -178,6 +178,11 @@ name = "tls" path = "tests/tls.rs" required-features = ["client", "server", "tls", "tls-ring"] +[[test]] +name = "upgrades" +path = "tests/upgrades.rs" +required-features = ["server", "client", "stream"] + [package.metadata.cargo-udeps.ignore] normal = ["rustls-native-certs", "rustls", "tokio-rustls"] diff --git a/tests/upgrades.rs b/tests/upgrades.rs index b599b0a..fe991d4 100644 --- a/tests/upgrades.rs +++ b/tests/upgrades.rs @@ -104,7 +104,6 @@ async fn client_auto() { let mut client = hyperdriver::Client::builder() .with_auto_http() .with_default_pool() - .with_default_tls() .with_transport(transport) .build(); @@ -124,7 +123,6 @@ async fn client_http1() { let mut client = hyperdriver::Client::builder() .with_protocol(hyper::client::conn::http1::Builder::new()) .with_default_pool() - .with_default_tls() .with_transport(transport) .build();