GH tests failed due to /usr/bin/true... probably /bin/echo will behave better

This commit is contained in:
Winni Neessen 2022-03-18 23:01:29 +01:00
parent 0e00b165f9
commit d653cdc782
Signed by: wneessen
GPG key ID: 5F3AF39B820C119D

View file

@ -1149,7 +1149,7 @@ func TestMsg_WriteToSendmailWithCommand(t *testing.T) {
{"Sendmail path: /dev/null", "/dev/null", true},
{"Sendmail path: /bin/cat", "/bin/cat", true},
{"Sendmail path: /is/invalid", "/is/invalid", true},
{"Sendmail path: /usr/bin/true", "/usr/bin/true", false},
{"Sendmail path: /bin/echo", "/bin/echo", false},
}
m := NewMsg()
for _, tt := range tests {