kube-proxy-test: fix goroutine leak

Signed-off-by: Gaurav Singh <gaurav1086@gmail.com>
This commit is contained in:
Gaurav Singh 2020-05-26 09:21:55 -04:00
parent 4e8b56e667
commit 501f709c9d

View File

@ -525,7 +525,7 @@ udpIdleTimeout: 250ms`)
}
opt.proxyServer = tc.proxyServer
errCh := make(chan error)
errCh := make(chan error, 1)
go func() {
errCh <- opt.runLoop()
}()