Skip to content

Commit

Permalink
fis: trailing name in test
Browse files Browse the repository at this point in the history
  • Loading branch information
MyaLongmire committed Oct 12, 2021
1 parent b3c1543 commit 48b0a3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/inputs/snmp/snmp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ func TestSnmpInit_noTranslate(t *testing.T) {
Fields: []Field{
{Oid: ".1.1.1.1", Name: "one", IsTag: true},
{Oid: ".1.1.1.2", Name: "two"},
{Oid: ".1.1.1.3", Name: ".1.1.1.3"},
{Oid: ".1.1.1.3"},
},
Tables: []Table{
{Name: "testing",
Expand All @@ -251,7 +251,7 @@ func TestSnmpInit_noTranslate(t *testing.T) {
assert.Equal(t, false, s.Fields[1].IsTag)

assert.Equal(t, ".1.1.1.3", s.Fields[2].Oid)
assert.Equal(t, ".1.1.1.3", s.Fields[2].Name)
assert.Equal(t, "iso", s.Fields[2].Name)
assert.Equal(t, false, s.Fields[2].IsTag)

assert.Equal(t, ".1.1.1.4", s.Tables[0].Fields[0].Oid)
Expand Down

0 comments on commit 48b0a3b

Please sign in to comment.