Description: disable tests requiring network
Forwarded: not-needed
Author: Jonas Smedegaard <dr@jones.dk>
Last-Update: 2025-03-18
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/src/connector.rs
+++ b/src/connector.rs
@@ -221,6 +221,7 @@
     use crate::{ConfigBuilderExt, HttpsConnectorBuilder, MaybeHttpsStream};
 
     #[tokio::test]
+    #[cfg(with_network)]
     async fn connects_https() {
         connect(Allow::Any, Scheme::Https)
             .await
@@ -228,6 +229,7 @@
     }
 
     #[tokio::test]
+    #[cfg(with_network)]
     async fn connects_http() {
         connect(Allow::Any, Scheme::Http)
             .await
@@ -235,6 +237,7 @@
     }
 
     #[tokio::test]
+    #[cfg(with_network)]
     async fn connects_https_only() {
         connect(Allow::Https, Scheme::Https)
             .await
@@ -242,6 +245,7 @@
     }
 
     #[tokio::test]
+    #[cfg(with_network)]
     async fn enforces_https_only() {
         let message = connect(Allow::Https, Scheme::Http)
             .await
--- a/tests/tests.rs
+++ b/tests/tests.rs
@@ -33,6 +33,7 @@
 }
 
 #[test]
+#[cfg(with_network)]
 fn client() {
     let rc = client_command()
         .arg("https://google.com")
@@ -43,6 +44,7 @@
 }
 
 #[test]
+#[cfg(with_network)]
 fn server() {
     let mut srv = server_command()
         .arg("1337")
@@ -77,6 +79,7 @@
 }
 
 #[test]
+#[cfg(with_network)]
 fn custom_ca_store() {
     let mut srv = server_command()
         .arg("1338")
