Module: monitoring-plugins Branch: master Commit: b838b7536684b7b084b777454de95b4b8e050d3e Author: Sven Nierlein <s...@nierlein.de> Date: Tue Nov 8 00:38:55 2016 +0100 URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=b838b75
check_snmp: fix number of tests skiped --- plugins/t/check_snmp.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/t/check_snmp.t b/plugins/t/check_snmp.t index 6f870d4..eff46ea 100644 --- a/plugins/t/check_snmp.t +++ b/plugins/t/check_snmp.t @@ -45,7 +45,7 @@ is( $res->return_code, 3, "Invalid protocol" ); like( $res->output, "/check_snmp: Invalid SNMP version - 3c/" ); SKIP: { - skip "no snmp host defined", 48 if ( ! $host_snmp ); + skip "no snmp host defined", 50 if ( ! $host_snmp ); $res = NPTest->testCmd( "./check_snmp -H $host_snmp -C $snmp_community -o system.sysUpTime.0 -w 1: -c 1:"); cmp_ok( $res->return_code, '==', 0, "Exit OK when querying uptime" );