Просмотр исходного кода

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 13 лет назад
Родитель
Сommit
62d01df1fd
1 измененных файлов с 1 добавлено и 1 удалено
  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