From f8ad48ea1d83fdae35cbb43e0caafa813f8b4264 Mon Sep 17 00:00:00 2001 From: Joachim Schiele Date: Mon, 6 Mar 2017 21:33:21 +0100 Subject: [PATCH] nixos/tests/leaps.nix: fixed race condition --- nixos/tests/leaps.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nixos/tests/leaps.nix b/nixos/tests/leaps.nix index 3c390e1a1691..6163fed56b6f 100644 --- a/nixos/tests/leaps.nix +++ b/nixos/tests/leaps.nix @@ -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'"); ''; })