diff --git a/t/misc.t b/t/misc.t index abcfd1e..cae183e 100644 --- a/t/misc.t +++ b/t/misc.t @@ -10,14 +10,14 @@ ok(my ($smtpd, $conn) = Test::Qpsmtpd->new_conn(), "get new connection"); { my $fault; stderr_like { $fault = $smtpd->fault } - qr/program fault - command not performed \(No such file or directory\)/, + qr/program fault - command not performed \(/, 'fault outputs proper warning to STDOUT'; is($fault->[0], 451, 'fault returns 451'); }; { my $fault; stderr_like { $fault = $smtpd->fault('test message') } - qr/test message \(No such file or directory\)/, + qr/test message \(/, 'fault outputs proper custom warning to STDOUT'; is($fault->[1], 'Internal error - try again later - test message', 'returns the input message');