nixos/tests/mailcatcher: Use curl --fail

This commit is contained in:
Scott Worley 2020-09-16 07:44:27 -07:00 committed by Frederik Rietdijk
parent e90e600ebb
commit e9c61e813a

View file

@ -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"
)
'';
})