diff --git a/.golangci.yml b/.golangci.yml index 22ca15f95..6c4294a9e 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -15,6 +15,7 @@ linters: - revive - sqlclosecheck - staticcheck + - tparallel - typecheck - unconvert - unused diff --git a/plugins/inputs/neptune_apex/neptune_apex_test.go b/plugins/inputs/neptune_apex/neptune_apex_test.go index 0c2971efe..29a1c6473 100644 --- a/plugins/inputs/neptune_apex/neptune_apex_test.go +++ b/plugins/inputs/neptune_apex/neptune_apex_test.go @@ -8,9 +8,10 @@ import ( "testing" "time" + "github.com/stretchr/testify/require" + "github.com/influxdata/telegraf" "github.com/influxdata/telegraf/testutil" - "github.com/stretchr/testify/require" ) func TestGather(t *testing.T) { @@ -378,6 +379,8 @@ func TestParseXML(t *testing.T) { } func TestSendRequest(t *testing.T) { + t.Parallel() + tests := []struct { name string statusCode int @@ -428,6 +431,8 @@ func TestSendRequest(t *testing.T) { } func TestParseTime(t *testing.T) { + t.Parallel() + tests := []struct { name string input string @@ -474,6 +479,8 @@ func TestParseTime(t *testing.T) { } func TestFindProbe(t *testing.T) { + t.Parallel() + fakeProbes := []probe{ { Name: "test1",