summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorJörg Thalheim <Mic92@users.noreply.github.com>2018-08-26 13:50:10 +0100
committerGitHub <noreply@github.com>2018-08-26 13:50:10 +0100
commitb7d7e20b3d131243ea1030f7a588075700acc88a (patch)
tree14484ebccb8507271c49b12724adc8e83979ea4c /nixos
parent20ae968798a2ad64877fe120c2428bf18775b17f (diff)
parenta44469d7b66815fcadd628e07ae86e6b7bc7f26b (diff)
downloadnixpkgs-b7d7e20b3d131243ea1030f7a588075700acc88a.tar
nixpkgs-b7d7e20b3d131243ea1030f7a588075700acc88a.tar.gz
nixpkgs-b7d7e20b3d131243ea1030f7a588075700acc88a.tar.bz2
nixpkgs-b7d7e20b3d131243ea1030f7a588075700acc88a.tar.lz
nixpkgs-b7d7e20b3d131243ea1030f7a588075700acc88a.tar.xz
nixpkgs-b7d7e20b3d131243ea1030f7a588075700acc88a.tar.zst
nixpkgs-b7d7e20b3d131243ea1030f7a588075700acc88a.zip
Merge pull request #45647 from xeji/p/netdata-test
nixos/tests/netdata: fix non-deterministic failure
Diffstat (limited to 'nixos')
-rw-r--r--nixos/tests/netdata.nix3
1 files changed, 3 insertions, 0 deletions
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/");