summary refs log tree commit diff
path: root/nixos/tests/pdns-recursor.nix
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@thalheim.io>2019-04-05 02:27:05 +0100
committerJörg Thalheim <joerg@thalheim.io>2019-04-05 02:30:28 +0100
commit4aeafc6b63fbf9b0207ce51a3bbf0bc81c807115 (patch)
tree08212c61c041d56d9127d3a76535297a824ab97a /nixos/tests/pdns-recursor.nix
parente49a143ac758c8268fa7c5647dc77b04c27897f3 (diff)
downloadnixpkgs-4aeafc6b63fbf9b0207ce51a3bbf0bc81c807115.tar
nixpkgs-4aeafc6b63fbf9b0207ce51a3bbf0bc81c807115.tar.gz
nixpkgs-4aeafc6b63fbf9b0207ce51a3bbf0bc81c807115.tar.bz2
nixpkgs-4aeafc6b63fbf9b0207ce51a3bbf0bc81c807115.tar.lz
nixpkgs-4aeafc6b63fbf9b0207ce51a3bbf0bc81c807115.tar.xz
nixpkgs-4aeafc6b63fbf9b0207ce51a3bbf0bc81c807115.tar.zst
nixpkgs-4aeafc6b63fbf9b0207ce51a3bbf0bc81c807115.zip
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.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/tests/pdns-recursor.nix b/nixos/tests/pdns-recursor.nix
index fb24cfc72f1..bf6e6093d69 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");
   '';
 })