mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 07:01:54 +00:00
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.
This commit is contained in:
parent
3d1331f438
commit
a44469d7b6
@ -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/");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user