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:
parent
c4b0d80cba
commit
94dd66882f
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue