diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2006-03-29 08:18:50 +0000 |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2006-03-29 08:18:50 +0000 |
commit | 6941b9f66b396342f4c5926a6c6b25911c382ffd (patch) | |
tree | f11cf17966eea8ad168ea84662fc9bd5f741d97a /plugins/t/check_http.t | |
parent | 2f2354d5cc4ba18418e2f7d4e5e86bf6ba59a441 (diff) | |
download | monitoring-plugins-6941b9f66b396342f4c5926a6c6b25911c382ffd.tar.gz |
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
Diffstat (limited to 'plugins/t/check_http.t')
-rw-r--r-- | plugins/t/check_http.t | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/t/check_http.t b/plugins/t/check_http.t index 24e4fd6d..408906d9 100644 --- a/plugins/t/check_http.t +++ b/plugins/t/check_http.t | |||
@@ -45,7 +45,8 @@ $res = NPTest->testCmd( | |||
45 | cmp_ok( $res->return_code, '==', 2, "Webserver $hostname_invalid not valid" ); | 45 | cmp_ok( $res->return_code, '==', 2, "Webserver $hostname_invalid not valid" ); |
46 | # The first part of the message comes from the OS catalogue, so cannot check this. | 46 | # The first part of the message comes from the OS catalogue, so cannot check this. |
47 | # On Debian, it is Name or service not known, on Darwin, it is No address associated with nodename | 47 | # On Debian, it is Name or service not known, on Darwin, it is No address associated with nodename |
48 | like( $res->output, "/Unable to open TCP socket/", "Output OK"); | 48 | # Is also possible to get a socket timeout if DNS is not responding fast enough |
49 | like( $res->output, "/Unable to open TCP socket|Socket timeout after/", "Output OK"); | ||
49 | 50 | ||
50 | $res = NPTest->testCmd( | 51 | $res = NPTest->testCmd( |
51 | "./check_http --ssl www.verisign.com" | 52 | "./check_http --ssl www.verisign.com" |