Merge pull request #136026 from KyungHwanKim-devs/fix-goroutine-leak-kubelet-pluginmanager

Fix potential goroutine leak in kubelet operation_executor_test
This commit is contained in:
Kubernetes Prow Robot
2026-01-17 06:59:15 +05:30
committed by GitHub

View File

@@ -185,6 +185,9 @@ func setup(t *testing.T) (context.Context, chan interface{}, chan interface{}, O
// This function starts by writing to ch and blocks on the quit channel
// until it is closed by the currently running test
func startOperationAndBlock(ch chan<- interface{}, quit <-chan interface{}) {
ch <- nil
<-quit
select {
case ch <- nil:
<-quit
case <-quit:
}
}