Explorar el Código

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.
Holger Weiss hace 13 años
padre
commit
62d01df1fd
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      plugins/tests/check_http.t

+ 1 - 1
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