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.
This commit is contained in:
K900
2024-11-09 09:40:38 +03:00
parent ee6df93fe2
commit c8fd06c3b2
+1
View File
@@ -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)