From a657d429c9358f45a1c594e6723cf1c4e4268db6 Mon Sep 17 00:00:00 2001 From: Maxine Aubrey Date: Wed, 4 Aug 2021 23:55:51 +0200 Subject: [PATCH] nixos/traefik: wait for first success possible fix for #115418 (cherry picked from commit 34add8ca5994dd594e1070ae93c0f503fd0661bc) --- nixos/tests/traefik.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/tests/traefik.nix b/nixos/tests/traefik.nix index f27f6e1e6d6..1d6c0a479ef 100644 --- a/nixos/tests/traefik.nix +++ b/nixos/tests/traefik.nix @@ -74,6 +74,8 @@ import ./make-test-python.nix ({ pkgs, ... }: { client.wait_for_unit("multi-user.target") + client.wait_until_succeeds("curl -sSf -H Host:nginx.traefik.test http://traefik/") + with subtest("Check that a container can be reached via Traefik"): assert "Hello from NGINX" in client.succeed( "curl -sSf -H Host:nginx.traefik.test http://traefik/"