diff --git a/nixos/tests/netdata.nix b/nixos/tests/netdata.nix index eb45db6f04c..9bd147968e4 100644 --- a/nixos/tests/netdata.nix +++ b/nixos/tests/netdata.nix @@ -20,6 +20,9 @@ import ./make-test.nix ({ pkgs, ...} : { $netdata->waitForUnit("netdata.service"); + # wait for the service to listen before sending a request + $netdata->waitForOpenPort(19999); + # check if the netdata main page loads. $netdata->succeed("curl --fail http://localhost:19999/");