diff options
author | xeji <36407913+xeji@users.noreply.github.com> | 2018-09-24 17:31:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-24 17:31:46 +0200 |
commit | c5251111335f83f56754aefff2defe6459766b03 (patch) | |
tree | 8b749ba81b55f4b99eec33c52260e3af073e12f4 /nixos/tests/hound.nix | |
parent | fe287e755ff9dcef5e09415f4935dc0b1f638b96 (diff) |
nixos/tests/hound: fix non-deterministic failure (#47152)
The test failed on Hydra in one instance because a request to the
server was sent before indexing was finished.
Retry the request until it succeeds (or times out).
Diffstat (limited to 'nixos/tests/hound.nix')
-rw-r--r-- | nixos/tests/hound.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/tests/hound.nix b/nixos/tests/hound.nix index f21c0ad58a85..cb8e25332c07 100644 --- a/nixos/tests/hound.nix +++ b/nixos/tests/hound.nix @@ -52,7 +52,7 @@ import ./make-test.nix ({ pkgs, ... } : { $machine->waitForUnit("network.target"); $machine->waitForUnit("hound.service"); $machine->waitForOpenPort(6080); - $machine->succeed('curl http://127.0.0.1:6080/api/v1/search\?stats\=fosho\&repos\=\*\&rng=%3A20\&q\=hi\&files\=\&i=nope | grep "Filename" | grep "hello"'); + $machine->waitUntilSucceeds('curl http://127.0.0.1:6080/api/v1/search\?stats\=fosho\&repos\=\*\&rng=%3A20\&q\=hi\&files\=\&i=nope | grep "Filename" | grep "hello"'); ''; }) |