tests/pdns-recursor: use waitForOpenPort as port check
This should be safer w.r.t. race conditions.
This commit is contained in:
parent
e49a143ac7
commit
4aeafc6b63
|
@ -1,4 +1,4 @@
|
||||||
import ./make-test.nix ({ pkgs, lib, ... }: {
|
import ./make-test.nix ({ pkgs, ... }: {
|
||||||
name = "powerdns";
|
name = "powerdns";
|
||||||
|
|
||||||
nodes.server = { ... }: {
|
nodes.server = { ... }: {
|
||||||
|
@ -7,6 +7,6 @@ import ./make-test.nix ({ pkgs, lib, ... }: {
|
||||||
|
|
||||||
testScript = ''
|
testScript = ''
|
||||||
$server->waitForUnit("pdns-recursor");
|
$server->waitForUnit("pdns-recursor");
|
||||||
$server->succeed("echo | ${lib.getBin pkgs.netcat}/bin/nc -v localhost 53")
|
$server->waitForOpenPort("53");
|
||||||
'';
|
'';
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue