nixos/tests/mailcatcher: Use curl --fail

Changed files
+1 -1
nixos
+1 -1
nixos/tests/mailcatcher.nix
···
'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"
)
'';
})
···
'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 -f http://localhost:1080/messages/1.source"
)
'';
})