Skip to content

Commit

Permalink
nixos/tests/leaps.nix: fixed race condition
Browse files Browse the repository at this point in the history
  • Loading branch information
qknight committed Mar 6, 2017
1 parent 6cdff59 commit f8ad48e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nixos/tests/leaps.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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'");
'';
})

0 comments on commit f8ad48e

Please sign in to comment.