From 54d91bfeb468d026d9a3c3a4d40129da2c0962a0 Mon Sep 17 00:00:00 2001 From: Ximin Luo Date: Sun, 15 Apr 2018 12:28:29 +0530 Subject: [PATCH] Disable network tests Forwarded: TODO Gbp-Pq: Name 2002_disable-net-tests.patch --- tests/build-auth.rs | 6 +++--- tests/net-config.rs | 4 ++-- tests/test.rs | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/build-auth.rs b/tests/build-auth.rs index 5420de7bc..7a20de98f 100644 --- a/tests/build-auth.rs +++ b/tests/build-auth.rs @@ -14,7 +14,7 @@ use cargotest::support::{project, execs}; use hamcrest::assert_that; // Test that HTTP auth is offered from `credential.helper` -#[test] +//#[test] fn http_auth_offered() { let server = TcpListener::bind("127.0.0.1:0").unwrap(); let addr = server.local_addr().unwrap(); @@ -129,7 +129,7 @@ To learn more, run the command again with --verbose. } // Boy, sure would be nice to have a TLS implementation in rust! -#[test] +//#[test] fn https_something_happens() { let server = TcpListener::bind("127.0.0.1:0").unwrap(); let addr = server.local_addr().unwrap(); @@ -180,7 +180,7 @@ Caused by: } // Boy, sure would be nice to have an SSH implementation in rust! -#[test] +//#[test] fn ssh_something_happens() { let server = TcpListener::bind("127.0.0.1:0").unwrap(); let addr = server.local_addr().unwrap(); diff --git a/tests/net-config.rs b/tests/net-config.rs index aeaacafc7..14e735819 100644 --- a/tests/net-config.rs +++ b/tests/net-config.rs @@ -4,7 +4,7 @@ extern crate hamcrest; use cargotest::support::{project, execs}; use hamcrest::assert_that; -#[test] +//#[test] fn net_retry_loads_from_config() { let p = project("foo") .file("Cargo.toml", r#" @@ -30,7 +30,7 @@ fn net_retry_loads_from_config() { (1 tries remaining): [..]")); } -#[test] +//#[test] fn net_retry_git_outputs_warning() { let p = project("foo") .file("Cargo.toml", r#" diff --git a/tests/test.rs b/tests/test.rs index 2a454f043..3b3ade2d1 100644 --- a/tests/test.rs +++ b/tests/test.rs @@ -2264,7 +2264,7 @@ fn panic_abort_multiple() { execs().with_status(0)); } -#[test] +//#[test] fn pass_correct_cfgs_flags_to_rustdoc() { let p = project("foo") .file("Cargo.toml", r#" -- 2.30.2