-
Notifications
You must be signed in to change notification settings - Fork 5.7k
chore(deps): Bump golangci-lint from v1.61.0 to v1.62.0 #16172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,15 +1,15 @@ | ||
| package parallel_test | ||
|
|
||
| import ( | ||
| "fmt" | ||
| "testing" | ||
| "time" | ||
|
|
||
| "github.com/stretchr/testify/require" | ||
|
|
||
| "github.com/influxdata/telegraf" | ||
| "github.com/influxdata/telegraf/metric" | ||
| "github.com/influxdata/telegraf/plugins/common/parallel" | ||
| "github.com/influxdata/telegraf/testutil" | ||
| "github.com/stretchr/testify/require" | ||
| ) | ||
|
|
||
| func TestOrderedJobsStayOrdered(t *testing.T) { | ||
|
|
@@ -31,7 +31,7 @@ func TestOrderedJobsStayOrdered(t *testing.T) { | |
| p.Stop() | ||
|
|
||
| i := 0 | ||
| require.Len(t, acc.Metrics, 20000, fmt.Sprintf("expected 20k metrics but got %d", len(acc.GetTelegrafMetrics()))) | ||
| require.Len(t, acc.Metrics, 20000, "expected 20k metrics but got %d", len(acc.GetTelegrafMetrics())) | ||
|
||
| for _, m := range acc.GetTelegrafMetrics() { | ||
| v, ok := m.GetField("val") | ||
| require.True(t, ok) | ||
|
|
@@ -63,7 +63,7 @@ func TestUnorderedJobsDontDropAnyJobs(t *testing.T) { | |
| p.Stop() | ||
|
|
||
| actualTotal := int64(0) | ||
| require.Len(t, acc.Metrics, 20000, fmt.Sprintf("expected 20k metrics but got %d", len(acc.GetTelegrafMetrics()))) | ||
| require.Len(t, acc.Metrics, 20000, "expected 20k metrics but got %d", len(acc.GetTelegrafMetrics())) | ||
srebhan marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| for _, m := range acc.GetTelegrafMetrics() { | ||
| v, ok := m.GetField("val") | ||
| require.True(t, ok) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not a fan of this as it opens a security risk because now everyone with write-access to that shell can execute everything in our CircleCI env. Is this really necessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, reverted to
go install