From 962db8079611bf6c3282197436b37af3ddbb4718 Mon Sep 17 00:00:00 2001 From: Markus Wamser Date: Sun, 1 Jun 2025 15:52:47 +0200 Subject: [PATCH] nixosTests.ngingx-http3: fix race condition make the client wait for its network to come up before starting test without the wait, the client might try to access the network before its own network stack is up, as evidenced in https://hydra.nixos.org/build/299048133/nixlog/9/tail --- nixos/tests/nginx-http3.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/tests/nginx-http3.nix b/nixos/tests/nginx-http3.nix index 1d6cd56294be..1c0326d0f0f6 100644 --- a/nixos/tests/nginx-http3.nix +++ b/nixos/tests/nginx-http3.nix @@ -90,6 +90,7 @@ builtins.listToAttrs ( server.wait_for_unit("nginx") server.wait_for_open_port(443) + client.wait_for_unit("network-online.target") # Check http connections client.succeed("curl --verbose --http3-only https://acme.test | grep 'Hello World!'")