From: Ton Voon Date: Wed, 29 Mar 2006 08:18:50 +0000 (+0000) Subject: Fix possible timeout issue on hostname_invalid X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6941b9f66b396342f4c5926a6c6b25911c382ffd;p=nagiosplug.git 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 --- diff --git a/plugins/t/check_http.t b/plugins/t/check_http.t index 24e4fd6..408906d 100644 --- a/plugins/t/check_http.t +++ b/plugins/t/check_http.t @@ -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"