diff options
author | Jörg Thalheim <joerg@thalheim.io> | 2019-04-05 02:27:05 +0100 |
---|---|---|
committer | Jörg Thalheim <joerg@thalheim.io> | 2019-04-05 02:30:28 +0100 |
commit | 4aeafc6b63fbf9b0207ce51a3bbf0bc81c807115 (patch) | |
tree | 08212c61c041d56d9127d3a76535297a824ab97a /nixos/tests/pdns-recursor.nix | |
parent | e49a143ac758c8268fa7c5647dc77b04c27897f3 (diff) |
tests/pdns-recursor: use waitForOpenPort as port check
This should be safer w.r.t. race conditions.
Diffstat (limited to 'nixos/tests/pdns-recursor.nix')
-rw-r--r-- | nixos/tests/pdns-recursor.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/tests/pdns-recursor.nix b/nixos/tests/pdns-recursor.nix index fb24cfc72f147..bf6e6093d69c5 100644 --- a/nixos/tests/pdns-recursor.nix +++ b/nixos/tests/pdns-recursor.nix @@ -1,4 +1,4 @@ -import ./make-test.nix ({ pkgs, lib, ... }: { +import ./make-test.nix ({ pkgs, ... }: { name = "powerdns"; nodes.server = { ... }: { @@ -7,6 +7,6 @@ import ./make-test.nix ({ pkgs, lib, ... }: { testScript = '' $server->waitForUnit("pdns-recursor"); - $server->succeed("echo | ${lib.getBin pkgs.netcat}/bin/nc -v localhost 53") + $server->waitForOpenPort("53"); ''; }) |