Description: skip flaky network-depending tests by default
Author: Jonas Smedegaard <dr@jones.dk>
Last-Update: 2022-06-25
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/rustls/src/verifybench.rs
+++ b/rustls/src/verifybench.rs
@@ -19,6 +19,7 @@
 }
 
 #[test]
+#[ignore]
 fn test_reddit_cert() {
     Context::new(
         "reddit",
@@ -32,6 +33,7 @@
 }
 
 #[test]
+#[ignore]
 fn test_github_cert() {
     Context::new(
         "github",
@@ -45,6 +47,7 @@
 }
 
 #[test]
+#[ignore]
 fn test_arstechnica_cert() {
     Context::new(
         "arstechnica",
@@ -60,6 +63,7 @@
 }
 
 #[test]
+#[ignore]
 fn test_servo_cert() {
     Context::new(
         "servo",
@@ -73,6 +77,7 @@
 }
 
 #[test]
+#[ignore]
 fn test_twitter_cert() {
     Context::new(
         "twitter",
@@ -86,6 +91,7 @@
 }
 
 #[test]
+#[ignore]
 fn test_wikipedia_cert() {
     Context::new(
         "wikipedia",
@@ -99,6 +105,7 @@
 }
 
 #[test]
+#[ignore]
 fn test_google_cert() {
     Context::new(
         "google",
@@ -112,6 +119,7 @@
 }
 
 #[test]
+#[ignore]
 fn test_hn_cert() {
     Context::new(
         "hn",
@@ -125,6 +133,7 @@
 }
 
 #[test]
+#[ignore]
 fn test_stackoverflow_cert() {
     Context::new(
         "stackoverflow",
@@ -138,6 +147,7 @@
 }
 
 #[test]
+#[ignore]
 fn test_duckduckgo_cert() {
     Context::new(
         "duckduckgo",
@@ -151,6 +161,7 @@
 }
 
 #[test]
+#[ignore]
 fn test_rustlang_cert() {
     Context::new(
         "rustlang",
@@ -165,6 +176,7 @@
 }
 
 #[test]
+#[ignore]
 fn test_wapo_cert() {
     Context::new(
         "wapo",
--- a/examples/tests/badssl.rs
+++ b/examples/tests/badssl.rs
@@ -12,6 +12,7 @@
     }
 
     #[test]
+    #[ignore]
     fn no_cbc() {
         connect("cbc.badssl.com")
             .fails()
@@ -21,6 +22,7 @@
     }
 
     #[test]
+    #[ignore]
     fn no_rc4() {
         connect("rc4.badssl.com")
             .fails()
@@ -30,6 +32,7 @@
     }
 
     #[test]
+    #[ignore]
     fn expired() {
         connect("expired.badssl.com")
             .fails()
@@ -41,6 +44,7 @@
     }
 
     #[test]
+    #[ignore]
     fn wrong_host() {
         connect("wrong.host.badssl.com")
             .fails()
@@ -50,6 +54,7 @@
     }
 
     #[test]
+    #[ignore]
     fn self_signed() {
         connect("self-signed.badssl.com")
             .fails()
@@ -61,6 +66,7 @@
     }
 
     #[test]
+    #[ignore]
     fn no_dh() {
         connect("dh2048.badssl.com")
             .fails()
@@ -70,6 +76,7 @@
     }
 
     #[test]
+    #[ignore]
     fn mozilla_old() {
         connect("mozilla-old.badssl.com")
             .expect("<title>mozilla-old.badssl.com</title>")
@@ -78,6 +85,7 @@
     }
 
     #[test]
+    #[ignore]
     fn mozilla_inter() {
         connect("mozilla-intermediate.badssl.com")
             .expect("<title>mozilla-intermediate.badssl.com</title>")
@@ -86,6 +94,7 @@
     }
 
     #[test]
+    #[ignore]
     fn mozilla_modern() {
         connect("mozilla-modern.badssl.com")
             .expect("<title>mozilla-modern.badssl.com</title>")
@@ -94,6 +103,7 @@
     }
 
     #[test]
+    #[ignore]
     fn sha256() {
         connect("sha256.badssl.com")
             .expect("<title>sha256.badssl.com</title>")
@@ -102,6 +112,7 @@
     }
 
     #[test]
+    #[ignore]
     fn too_many_sans() {
         connect("10000-sans.badssl.com")
             .fails()
@@ -111,6 +122,7 @@
     }
 
     #[test]
+    #[ignore]
     fn rsa8192() {
         connect("rsa8192.badssl.com")
             .expect("<title>rsa8192.badssl.com</title>")
@@ -119,6 +131,7 @@
     }
 
     #[test]
+    #[ignore]
     fn sha1_2016() {
         connect("sha1-2016.badssl.com")
             .fails()
@@ -132,6 +145,7 @@
     #[cfg(feature = "dangerous_configuration")]
     mod danger {
         #[test]
+        #[ignore]
         fn self_signed() {
             super::connect("self-signed.badssl.com")
                 .insecure()
--- a/examples/tests/topsites.rs
+++ b/examples/tests/topsites.rs
@@ -17,61 +17,73 @@
     }
 
     #[test]
+    #[ignore]
     fn joe() {
         check("jbp.io")
     }
 
     #[test]
+    #[ignore]
     fn google() {
         check("google.com")
     }
 
     #[test]
+    #[ignore]
     fn github() {
         check("github.com")
     }
 
     #[test]
+    #[ignore]
     fn aws() {
         check("aws.amazon.com")
     }
 
     #[test]
+    #[ignore]
     fn microsoft() {
         check("www.microsoft.com")
     }
 
     #[test]
+    #[ignore]
     fn wikipedia() {
         check("www.wikipedia.org")
     }
 
     #[test]
+    #[ignore]
     fn twitter() {
         check("twitter.com")
     }
 
     #[test]
+    #[ignore]
     fn facebook() {
         check("www.facebook.com")
     }
 
     #[test]
+    #[ignore]
     fn baidu() {
         check("www.baidu.com")
     }
 
     #[test]
+    #[ignore]
     fn netflix() {
         check("www.netflix.com")
     }
 
     #[test]
+    #[ignore]
     fn stackoverflow() {
         check("stackoverflow.com")
     }
 
     #[test]
+    #[ignore]
     fn apple() {
         check("www.apple.com")
     }
