nixos/tests/mailcatcher: Use curl --fail

gstqt5
Scott Worley 2020-09-16 07:44:27 -07:00 committed by Frederik Rietdijk
parent e90e600ebb
commit e9c61e813a
1 changed files with 1 additions and 1 deletions

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