ferm: fix race condition in integration test (#18288)

curl sent the request faster then nginx bound the port in some cases
This commit is contained in:
Jörg Thalheim 2016-09-04 14:34:06 +02:00 committed by Domen Kožar
parent c4b0d80cba
commit 94dd66882f

View file

@ -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");