Explorar o código

check_snmp: modified tests

(Closes #1325)
Oliver Skibbe %!s(int64=11) %!d(string=hai) anos
pai
achega
a3b46595d6
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      plugins/t/check_snmp.t

+ 2 - 2
plugins/t/check_snmp.t

@@ -166,8 +166,8 @@ SKIP: {
 SKIP: {
     skip "no non responsive host defined", 2 if ( ! $host_nonresponsive );
     $res = NPTest->testCmd( "./check_snmp -H $host_nonresponsive -C np_foobar -o system.sysUpTime.0 -w 1: -c 1:");
-    cmp_ok( $res->return_code, '==', 3, "Exit UNKNOWN with non responsive host" );
-    like($res->output, '/External command error: Timeout: No Response from /', "String matches timeout problem");
+    cmp_ok( $res->return_code, '==', 2, "Exit CRITICAL with non responsive host" );
+    like($res->output, '/Plugin timed out while executing system call/', "String matches timeout problem");
 }
 
 SKIP: {