From 26dc4ab818009bf207f63d3e429e843935f71dee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sun, 4 Sep 2016 14:23:41 +0200 Subject: [PATCH] ferm: fix race condition in integration test 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 c0271269ca05..8f2a8c01eebc 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");