Skip to content

Commit ffe235d

Browse files
committed
replace context.TODO with context.Background in tests
1 parent 4bd0c02 commit ffe235d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

staging/src/k8s.io/kubelet/pkg/cri/streaming/remotecommand/httpstream_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func TestHandleResizeEvents(t *testing.T) {
6060
}
6161
for _, testCase := range testCases {
6262
t.Run(testCase.name, func(t *testing.T) {
63-
ctx, cancel := context.WithCancel(context.TODO())
63+
ctx, cancel := context.WithCancel(context.Background())
6464
connCtx := connectionContext{
6565
resizeStream: io.NopCloser(bytes.NewReader(testCase.resizeStreamData)),
6666
resizeChan: make(chan remotecommand.TerminalSize),

0 commit comments

Comments
 (0)