From c8fd06c3b23554bddf54148244bc3ef81aefba52 Mon Sep 17 00:00:00 2001 From: K900 Date: Sat, 9 Nov 2024 09:40:03 +0300 Subject: [PATCH] nixos/tests/acme: wait for server to run before starting the target This is really an ordering issue in the ACME module itself, but while we think of how to fix it, this should at least unflake the tests. --- nixos/tests/acme.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/tests/acme.nix b/nixos/tests/acme.nix index c6adc6e55052..308032cccc45 100644 --- a/nixos/tests/acme.nix +++ b/nixos/tests/acme.nix @@ -747,6 +747,7 @@ in { with subtest("Can remove an alias from a domain + cert is updated"): test_alias = f"{server}-{domains[0]}-alias.example.test" switch_to(webserver, f"{server}_remove_alias") + wait_for_server() start_and_wait(webserver, f"acme-finished-{test_domain}.target") wait_for_server() check_connection(client, test_domain)