[nagiosplug] tests/check_http.t: Fix test case

"Nagios Plugin Development" <[email protected]> Fri, 10 Aug 2012 12:40:15 +0000
Newsgroups gmane.network.nagios.plugins.cvs
Message-ID <[email protected]>
 Module: nagiosplug
 Branch: master
 Commit: 62d01df1fd8a0d54bb265b2234f3298d85381243
 Author: Holger Weiss <[email protected]>
   Date: Fri Aug 10 12:35:16 2012 +0200
    URL: http://nagiosplug.git.sf.net/git/gitweb.cgi?p=nagiosplug/nagiosplug;a=commit;h=62d01df

tests/check_http.t: Fix test case

Fix the test case which is meant to make sure that

	check_http -C <n>,<m> [...]

returns a CRITICAL state if <m> is large enough.

---

 plugins/tests/check_http.t |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/plugins/tests/check_http.t b/plugins/tests/check_http.t
index 8337f52..ab4ab4f 100755
--- a/plugins/tests/check_http.t
+++ b/plugins/tests/check_http.t
@@ -189,7 +189,7 @@ SKIP: {
 	like( $result->output, '/WARNING - Certificate \'Ton Voon\' expires in \d+ day\(s\) \(03/03/2019 21:41\)./', "output ok" );
 
         $result = NPTest->testCmd( "$command -p $port_https -S -C 13960,14000" );
-        is( $result->return_code, 1, "$command -p $port_https -S -C 139600,14000" );
+        is( $result->return_code, 2, "$command -p $port_https -S -C 13960,14000" );
         like( $result->output, '/CRITICAL - Certificate \'Ton Voon\' expires in \d+ day\(s\) \(03/03/2019 21:41\)./', "output ok" );
 
 	# Expired cert tests


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/