Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Matteo Cerutti committed Jan 9, 2017
1 parent 04ad912 commit 937c6d3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plugins/inputs/ipmi_sensor/ipmi_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func TestGather(t *testing.T) {
assert.Equal(t, "USERID", conn.Username)
assert.Equal(t, "lan", conn.Interface)

var tests = []struct {
var testsWithServer = []struct {
fields map[string]interface{}
tags map[string]string
}{
Expand Down Expand Up @@ -113,7 +113,7 @@ func TestGather(t *testing.T) {
},
}

for _, test := range tests {
for _, test := range testsWithServer {
acc.AssertContainsTaggedFields(t, "ipmi_sensor", test.fields, test.tags)
}

Expand All @@ -123,7 +123,7 @@ func TestGather(t *testing.T) {

err = i.Gather(&acc)

var tests = []struct {
var testsWithoutServer = []struct {
fields map[string]interface{}
tags map[string]string
}{
Expand Down Expand Up @@ -199,7 +199,7 @@ func TestGather(t *testing.T) {
},
}

for _, test := range tests {
for _, test := range testsWithoutServer {
acc.AssertContainsTaggedFields(t, "ipmi_sensor", test.fields, test.tags)
}
}
Expand Down

0 comments on commit 937c6d3

Please sign in to comment.