nixos/tests/mailcatcher: Use curl --fail
This commit is contained in:
parent
e90e600ebb
commit
e9c61e813a
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
)
|
||||
'';
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue