diff options
author | Maxine Aubrey <maxeaubrey@gmail.com> | 2021-08-04 23:55:51 +0200 |
---|---|---|
committer | Maxine Aubrey <maxeaubrey@gmail.com> | 2021-08-04 23:55:56 +0200 |
commit | 34add8ca5994dd594e1070ae93c0f503fd0661bc (patch) | |
tree | 27b24af6deb2ff81c631d2e06c4663e57ae22980 | |
parent | 4a97603613ae0c9ef776517f287a45c185eb33c8 (diff) | |
download | nixpkgs-34add8ca5994dd594e1070ae93c0f503fd0661bc.tar nixpkgs-34add8ca5994dd594e1070ae93c0f503fd0661bc.tar.gz nixpkgs-34add8ca5994dd594e1070ae93c0f503fd0661bc.tar.bz2 nixpkgs-34add8ca5994dd594e1070ae93c0f503fd0661bc.tar.lz nixpkgs-34add8ca5994dd594e1070ae93c0f503fd0661bc.tar.xz nixpkgs-34add8ca5994dd594e1070ae93c0f503fd0661bc.tar.zst nixpkgs-34add8ca5994dd594e1070ae93c0f503fd0661bc.zip |
nixos/traefik: wait for first success
possible fix for #115418
-rw-r--r-- | nixos/tests/traefik.nix | 2 |
1 files changed, 2 insertions, 0 deletions
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/" |