summary refs log tree commit diff
diff options
context:
space:
mode:
authorScott Worley <scottworley@scottworley.com>2020-09-15 15:28:08 -0700
committerFrederik Rietdijk <fridh@fridh.nl>2020-10-25 11:01:30 +0100
commita91aa489a6623b6ac5106687d6ac916f2baa34ec (patch)
tree0cfa2af43d2f578fce8c434150b95281102df993
parent331348799739277e9e6c055226a9918fff4f4fc7 (diff)
downloadnixpkgs-a91aa489a6623b6ac5106687d6ac916f2baa34ec.tar
nixpkgs-a91aa489a6623b6ac5106687d6ac916f2baa34ec.tar.gz
nixpkgs-a91aa489a6623b6ac5106687d6ac916f2baa34ec.tar.bz2
nixpkgs-a91aa489a6623b6ac5106687d6ac916f2baa34ec.tar.lz
nixpkgs-a91aa489a6623b6ac5106687d6ac916f2baa34ec.tar.xz
nixpkgs-a91aa489a6623b6ac5106687d6ac916f2baa34ec.tar.zst
nixpkgs-a91aa489a6623b6ac5106687d6ac916f2baa34ec.zip
nixos/tests/matrix-synapse: Use curl --fail
-rw-r--r--nixos/tests/matrix-synapse.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/tests/matrix-synapse.nix b/nixos/tests/matrix-synapse.nix
index 9ca80872176..6c8f1e188d5 100644
--- a/nixos/tests/matrix-synapse.nix
+++ b/nixos/tests/matrix-synapse.nix
@@ -77,12 +77,12 @@ in {
     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 ]")
   '';