From d14d127c7c53dd621c78c118cc1e4340a04c2297 Mon Sep 17 00:00:00 2001 From: Nils Date: Thu, 20 Aug 2020 14:01:52 +0100 Subject: [PATCH] Ignore networked tests This is so that build farms that don't have network access can still run the other tests. https://github.com/NixOS/nixpkgs/pull/95830#issuecomment-677477411 --- .github/workflows/rust.yml | 1 + src/main.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index c989734..97e97d5 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -14,3 +14,4 @@ jobs: - uses: actions/checkout@v2 - run: cargo build - run: cargo test + - run: cargo test -- --ignored diff --git a/src/main.rs b/src/main.rs index 21c6b38..9d35f54 100644 --- a/src/main.rs +++ b/src/main.rs @@ -590,6 +590,7 @@ mod tests { } #[test] + #[ignore] fn test_ipv4_gateway() { let relays: Relays = reqwest::blocking::get("https://api.mullvad.net/app/v1/relays") .unwrap()