-
Notifications
You must be signed in to change notification settings - Fork 5.8k
test: snmp input non-existing-directory #11122
Copy link
Copy link
Closed as not planned
Labels
area/snmpbugunexpected problem or unintended behaviorunexpected problem or unintended behaviortesting requestAn issue that requires the tests to be updatedAn issue that requires the tests to be updated
Description
Relevant telegraf.conf
n/aLogs from Telegraf
2022/05/17 14:43:11 W! [] No mibs found
2022/05/17 14:43:11 W! [] MIB path doesn't exist: "non-existing-directory"
--- FAIL: TestGosnmpWrapper_walk_retry (0.00s)
snmp_test.go:563:
Error Trace: snmp_test.go:563
Error: Should not be: &net.UDPConn{conn:net.conn{fd:(*net.netFD)(0xc00049ab00)}}
Test: TestGosnmpWrapper_walk_retry
snmp_test.go:564:
Error Trace: snmp_test.go:564
Error: Not equal:
expected: 4
actual : 2
Test: TestGosnmpWrapper_walk_retry
FAIL
FAIL github.com/influxdata/telegraf/plugins/inputs/snmp 8.655s
System info
master
Docker
No response
Steps to reproduce
go test -count=1 -race ./plugins/inputs/snmp
Expected behavior
test pass
Actual behavior
There are two failures from TestGosnmpWrapper_walk_retry
assert.NotEqual(t, gs.Conn, conn)
assert.Equal(t, (gs.Retries+1)*2, reqCount)Additional info
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area/snmpbugunexpected problem or unintended behaviorunexpected problem or unintended behaviortesting requestAn issue that requires the tests to be updatedAn issue that requires the tests to be updated