3
0
Fork 0
forked from mirrors/nixpkgs

nixos/tests/leaps.nix: fixed race condition

This commit is contained in:
Joachim Schiele 2017-03-06 21:33:21 +01:00
parent 6cdff59992
commit f8ad48ea1d

View file

@ -24,6 +24,7 @@ import ./make-test.nix ({ pkgs, ... }:
''
startAll;
$server->waitForOpenPort(6666);
$client->succeed("curl http://server:6666/leaps/ | grep -i 'leaps'");
$client->waitForUnit("network.target");
$client->succeed("${pkgs.curl}/bin/curl http://server:6666/leaps/ | grep -i 'leaps'");
'';
})