3
0
Fork 0
forked from mirrors/nixpkgs

tests/pdns-recursor: use waitForOpenPort as port check

This should be safer w.r.t. race conditions.
This commit is contained in:
Jörg Thalheim 2019-04-05 02:27:05 +01:00
parent e49a143ac7
commit 4aeafc6b63
No known key found for this signature in database
GPG key ID: B3F5D81B0C6967C4

View file

@ -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");
'';
})