Skip to content

Commit

Permalink
Disable network tests
Browse files Browse the repository at this point in the history
Forwarded: TODO

Gbp-Pq: Name 2002_disable-net-tests.patch
  • Loading branch information
infinity0 authored and copyninja committed May 1, 2018
1 parent 07a5cd1 commit ad90b1c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
6 changes: 3 additions & 3 deletions tests/build-auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -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();
Expand Down
1 change: 0 additions & 1 deletion tests/generate-lockfile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ fn adding_and_removing_packages() {
assert_eq!(lock1, lock4);
}

#[test]
fn no_index_update() {
use cargotest::ChannelChanger;
let p = project("foo")
Expand Down
4 changes: 2 additions & 2 deletions tests/net-config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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#"
Expand All @@ -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#"
Expand Down
2 changes: 1 addition & 1 deletion tests/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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#"
Expand Down

0 comments on commit ad90b1c

Please sign in to comment.