mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-13 13:55:41 +00:00
Merge pull request #16473 from mesosphere/sttts-fix-panics-in-runKubectlWithTimeout
Auto commit by PR queue bot
This commit is contained in:
commit
c691f66b79
@ -115,6 +115,7 @@ func runPortForward(ns, podName string, port int) (*exec.Cmd, int) {
|
|||||||
func runKubectlWithTimeout(timeout time.Duration, args ...string) string {
|
func runKubectlWithTimeout(timeout time.Duration, args ...string) string {
|
||||||
logOutput := make(chan string)
|
logOutput := make(chan string)
|
||||||
go func() {
|
go func() {
|
||||||
|
defer GinkgoRecover()
|
||||||
logOutput <- runKubectl(args...)
|
logOutput <- runKubectl(args...)
|
||||||
}()
|
}()
|
||||||
select {
|
select {
|
||||||
|
Loading…
Reference in New Issue
Block a user