mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-04-15 22:00:06 -04:00
small test correction
This commit is contained in:
parent
034d4ee158
commit
4442ea917b
1 changed files with 2 additions and 2 deletions
|
|
@ -25,7 +25,7 @@ my $hostname_invalid = getTestParameter( "NP_HOSTNAME_INVALID",
|
|||
"An invalid (not known to DNS) hostname", "nosuchhost" );
|
||||
my $res;
|
||||
|
||||
plan tests => 15;
|
||||
plan tests => 13;
|
||||
|
||||
SKIP: {
|
||||
skip "No SMTP server defined", 4 unless $host_tcp_smtp;
|
||||
|
|
@ -47,7 +47,7 @@ SKIP: {
|
|||
|
||||
$res = NPTest->testCmd( "./check_smtp -H $host_tcp_smtp --ssl -p 25" );
|
||||
is ($res->return_code, 2, "Check rc of connecting to $host_tcp_smtp with TLS on standard SMTP port" );
|
||||
like ($res->output, qr/^cannot create TLS context\./, "Check output of connecting to $host_tcp_smtp with TLS on standard SMTP port");
|
||||
like ($res->output, qr/cannot create TLS context/, "Check output of connecting to $host_tcp_smtp with TLS on standard SMTP port");
|
||||
}
|
||||
|
||||
SKIP: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue