[Nagiosplug-checkins] nagiosplug/plugins/t check_http.t,1.8,1.9

Ton Voon tonvoon at users.sourceforge.net
Wed Mar 29 00:19:01 CEST 2006

Update of /cvsroot/nagiosplug/nagiosplug/plugins/t
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1862/t

Modified Files:
Log Message:
Fix possible timeout issue on hostname_invalid

Index: check_http.t
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/t/check_http.t,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- check_http.t	24 Mar 2006 16:13:40 -0000	1.8
+++ check_http.t	29 Mar 2006 08:18:50 -0000	1.9
@@ -45,7 +45,8 @@
 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"

More information about the Commits mailing list