From 937c6d3caa05dbeae68ea780d917f1ca47cfb3e9 Mon Sep 17 00:00:00 2001 From: Matteo Cerutti Date: Mon, 9 Jan 2017 14:48:37 +0000 Subject: [PATCH] fixed tests --- plugins/inputs/ipmi_sensor/ipmi_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/inputs/ipmi_sensor/ipmi_test.go b/plugins/inputs/ipmi_sensor/ipmi_test.go index 24b876c65314d..94dc066c851ad 100644 --- a/plugins/inputs/ipmi_sensor/ipmi_test.go +++ b/plugins/inputs/ipmi_sensor/ipmi_test.go @@ -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 }{ @@ -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) } @@ -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 }{ @@ -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) } }