From 94dd66882f7564922ea406838add0a4f6a14033c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sun, 4 Sep 2016 14:34:06 +0200 Subject: [PATCH] ferm: fix race condition in integration test (#18288) curl sent the request faster then nginx bound the port in some cases --- nixos/tests/ferm.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/tests/ferm.nix b/nixos/tests/ferm.nix index c0271269ca0..8f2a8c01eeb 100644 --- a/nixos/tests/ferm.nix +++ b/nixos/tests/ferm.nix @@ -54,6 +54,7 @@ import ./make-test.nix ({ pkgs, ...} : { $client->waitForUnit("network.target"); $server->waitForUnit("ferm.service"); $server->waitForUnit("nginx.service"); + $server->waitUntilSucceeds("ss -ntl | grep -q 80"); subtest "port 80 is allowed", sub { $client->succeed("curl --fail -g http://192.168.1.1:80/status");