From a44469d7b66815fcadd628e07ae86e6b7bc7f26b Mon Sep 17 00:00:00 2001 From: Uli Baum Date: Sun, 26 Aug 2018 13:38:58 +0200 Subject: nixos/tests/netdata: fix non-deterministic failure The test sporadically failed on hydra when a request was made before the service was actually listening on its port. Explicitly wait for the port to open. --- nixos/tests/netdata.nix | 3 +++ 1 file changed, 3 insertions(+) (limited to 'nixos') 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/"); -- cgit 1.4.1