nixos/tests/matrix-synapse: Use curl --fail

Changed files
+2 -2
nixos
+2 -2
nixos/tests/matrix-synapse.nix
···
start_all()
serverpostgres.wait_for_unit("matrix-synapse.service")
serverpostgres.wait_until_succeeds(
-
"curl -L --cacert ${ca_pem} https://localhost:8448/"
+
"curl --fail -L --cacert ${ca_pem} https://localhost:8448/"
)
serverpostgres.require_unit_state("postgresql.service")
serversqlite.wait_for_unit("matrix-synapse.service")
serversqlite.wait_until_succeeds(
-
"curl -L --cacert ${ca_pem} https://localhost:8448/"
+
"curl --fail -L --cacert ${ca_pem} https://localhost:8448/"
)
serversqlite.succeed("[ -e /var/lib/matrix-synapse/homeserver.db ]")
'';