From e9c61e813abd0c32c5579f8976222edd038969f3 Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Wed, 16 Sep 2020 07:44:27 -0700 Subject: [PATCH] nixos/tests/mailcatcher: Use curl --fail --- nixos/tests/mailcatcher.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/tests/mailcatcher.nix b/nixos/tests/mailcatcher.nix index 2ef38544fe0..a55fba8a995 100644 --- a/nixos/tests/mailcatcher.nix +++ b/nixos/tests/mailcatcher.nix @@ -24,7 +24,7 @@ import ./make-test-python.nix ({ lib, ... }: 'echo "this is the body of the email" | mail -s "subject" root@example.org' ) assert "this is the body of the email" in machine.succeed( - "curl http://localhost:1080/messages/1.source" + "curl -f http://localhost:1080/messages/1.source" ) ''; })