mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-07-18 04:54:54 +00:00
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:
@@ -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:
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user