nixos/traefik: wait for first success

possible fix for #115418

(cherry picked from commit 34add8ca5994dd594e1070ae93c0f503fd0661bc)
This commit is contained in:
Maxine Aubrey 2021-08-04 23:55:51 +02:00 committed by github-actions[bot]
parent 5ae7f11e35
commit a657d429c9
1 changed files with 2 additions and 0 deletions

View File

@ -74,6 +74,8 @@ import ./make-test-python.nix ({ pkgs, ... }: {
client.wait_for_unit("multi-user.target") 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"): with subtest("Check that a container can be reached via Traefik"):
assert "Hello from NGINX" in client.succeed( assert "Hello from NGINX" in client.succeed(
"curl -sSf -H Host:nginx.traefik.test http://traefik/" "curl -sSf -H Host:nginx.traefik.test http://traefik/"