File: disable-tests.diff

package info (click to toggle)
rust-async-tls 0.13.0-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 316 kB
  • sloc: sh: 16; makefile: 2
file content (34 lines) | stat: -rw-r--r-- 712 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
From: Matthias Geiger <werdahias@debian.org>
From: Maytham Alsudany <maytha8thedev@gmail.com>
Forwarded: not-needed
Description: Disable tests
 Tests connect to the internet.

--- a/Cargo.toml
+++ b/Cargo.toml
@@ -30,17 +30,7 @@
 ]
 license = "MIT/Apache-2.0"
 repository = "https://github.com/async-std/async-tls"
-
-[[test]]
-name = "test"
-required-features = [
-    "client",
-    "server",
-]
-
-[[test]]
-name = "google"
-required-features = ["client"]
+autotests = false
 
 [dependencies.futures-core]
 version = "0.3.5"
--- a/src/test_0rtt.rs
+++ b/src/test_0rtt.rs
@@ -1,3 +1,4 @@
+#![cfg(any())]
 use crate::{client::TlsStream, TlsConnector};
 use async_std::net::TcpStream;
 use async_std::sync::Arc;