mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-05-28 04:35:40 -04:00
Fix possible timeout issue on hostname_invalid
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1362 f882894a-f735-0410-b71e-b25c423dba1c
This commit is contained in:
parent
2f2354d5cc
commit
6941b9f66b
1 changed files with 2 additions and 1 deletions
|
|
@ -45,7 +45,8 @@ $res = NPTest->testCmd(
|
|||
cmp_ok( $res->return_code, '==', 2, "Webserver $hostname_invalid not valid" );
|
||||
# The first part of the message comes from the OS catalogue, so cannot check this.
|
||||
# On Debian, it is Name or service not known, on Darwin, it is No address associated with nodename
|
||||
like( $res->output, "/Unable to open TCP socket/", "Output OK");
|
||||
# Is also possible to get a socket timeout if DNS is not responding fast enough
|
||||
like( $res->output, "/Unable to open TCP socket|Socket timeout after/", "Output OK");
|
||||
|
||||
$res = NPTest->testCmd(
|
||||
"./check_http --ssl www.verisign.com"
|
||||
|
|
|
|||
Loading…
Reference in a new issue