Merge pull request #10493 from ziggie1984/add-usetesting-linter
Update usetesting linter to match old behavior
This commit is contained in:
2 files changed
+7
-4
No files matched your search
@@ -187,6 +187,9 @@ linters:
|
||||
rules:
|
||||
json: snake
|
||||
|
||||
usetesting:
|
||||
context-background: true
|
||||
|
||||
whitespace:
|
||||
multi-if: true
|
||||
multi-func: true
|
||||
|
||||
@@ -5007,7 +5007,7 @@ func TestRecoverGossipPanic(t *testing.T) {
|
||||
panicked := make(chan struct{})
|
||||
go func() {
|
||||
defer ctx.gossiper.finalizeGossipProcessing(
|
||||
context.Background(), "testing",
|
||||
t.Context(), "testing",
|
||||
nMsg, jobIDRef,
|
||||
)
|
||||
defer close(panicked)
|
||||
@@ -5070,7 +5070,7 @@ func TestRecoverGossipPanicBlockedErrorChannel(t *testing.T) {
|
||||
panicked := make(chan struct{})
|
||||
go func() {
|
||||
defer ctx.gossiper.finalizeGossipProcessing(
|
||||
context.Background(), "testing", nMsg, &jobID,
|
||||
t.Context(), "testing", nMsg, &jobID,
|
||||
)
|
||||
defer close(panicked)
|
||||
|
||||
@@ -5142,7 +5142,7 @@ func TestRecoverGossipPanicSignalsDependents(t *testing.T) {
|
||||
panicked := make(chan struct{})
|
||||
go func() {
|
||||
defer ctx.gossiper.finalizeGossipProcessing(
|
||||
context.Background(), "testing", nMsg, &parentJobID,
|
||||
t.Context(), "testing", nMsg, &parentJobID,
|
||||
)
|
||||
defer close(panicked)
|
||||
|
||||
@@ -5212,7 +5212,7 @@ func TestRecoverGossipPanicNilJobID(t *testing.T) {
|
||||
panicked := make(chan struct{})
|
||||
go func() {
|
||||
defer ctx.gossiper.finalizeGossipProcessing(
|
||||
context.Background(), "processing", nMsg, nil,
|
||||
t.Context(), "processing", nMsg, nil,
|
||||
)
|
||||
defer close(panicked)
|
||||
|
||||
|
||||
Reference in new issue
Block a user