netns test: improve ping test

- Use fping for pinging multiple hosts in parallel.
  Significantly improves test runtime:
  >13 s -> ~200 ms for the negative ping tests.
- Only test network namespaces that are enabled.
  This allows running the netns test with a reduced service set for debugging.
- Remove deprecated services, instead add btcpayserver, spark-wallet
This commit is contained in:
Erik Arvstedt
2020-10-29 21:21:26 +01:00
parent 5e0e16529c
commit bae1b7f413
2 changed files with 20 additions and 31 deletions
+1
View File
@@ -115,6 +115,7 @@ let testEnv = rec {
nix-bitcoin.netns-isolation.enable = true;
test.data.netns = config.nix-bitcoin.netns-isolation.netns;
tests.netns-isolation = true;
environment.systemPackages = [ pkgs.fping ];
# This test is rather slow and unaffected by netns settings
tests.backups = mkForce false;