From 62d01df1fd8a0d54bb265b2234f3298d85381243 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Fri, 10 Aug 2012 12:35:16 +0200 Subject: tests/check_http.t: Fix test case Fix the test case which is meant to make sure that check_http -C , [...] returns a CRITICAL state if is large enough. --- plugins/tests/check_http.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/tests/check_http.t') diff --git a/plugins/tests/check_http.t b/plugins/tests/check_http.t index 8337f52a..ab4ab4fe 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 -- cgit v1.2.3