Skip to content

Commit f4dfb9c

Browse files
committed
context consistency: ensure all context are TODO()
1 parent 6937ffd commit f4dfb9c

File tree

6 files changed

+462
-9
lines changed

6 files changed

+462
-9
lines changed

pkg/controller/deployment/deployment_helper_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ func TestGetOverrideResourcesFor(t *testing.T) {
334334
},
335335
}
336336

337-
ctx, cancel := context.WithCancel(context.Background())
337+
ctx, cancel := context.WithCancel(context.TODO())
338338
defer cancel()
339339

340340
// Create channel to know when the watch has started.
@@ -856,7 +856,7 @@ func TestGetOverrideSchedulingFor(t *testing.T) {
856856
},
857857
}
858858

859-
ctx, cancel := context.WithCancel(context.Background())
859+
ctx, cancel := context.WithCancel(context.TODO())
860860
defer cancel()
861861

862862
// Create channel to know when the watch has started.

pkg/operator/informers/externalversions/factory.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)