mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 13:30:36 +00:00
ferm: fix race condition in integration test
curl sent the request faster then nginx bound the port in some cases
(cherry picked from commit 26dc4ab818)
Signed-off-by: Domen Kožar <domen@dev.si>
This commit is contained in:
committed by
Domen Kožar
parent
2852b6e7b7
commit
f95cf2d8c3
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user