From a4a62211df339e14c8e6e916a0b607d5892dbe05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Tue, 24 Sep 2024 12:27:26 +0200 Subject: [PATCH] matrix-synapse: fix race condition --- checks/matrix-synapse/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/checks/matrix-synapse/default.nix b/checks/matrix-synapse/default.nix index 5e7e17780..21bfcfe8b 100644 --- a/checks/matrix-synapse/default.nix +++ b/checks/matrix-synapse/default.nix @@ -70,7 +70,7 @@ start_all() machine.wait_for_unit("matrix-synapse") machine.succeed("${pkgs.netcat}/bin/nc -z -v ::1 8008") - machine.succeed("${pkgs.curl}/bin/curl -Ssf -L http://localhost/_matrix/static/ -H 'Host: matrix.clan.test'") + machine.wait_until_succeeds("${pkgs.curl}/bin/curl -Ssf -L http://localhost/_matrix/static/ -H 'Host: matrix.clan.test'") machine.systemctl("restart matrix-synapse >&2") # check if user creation is idempotent machine.execute("journalctl -u matrix-synapse --no-pager >&2")