mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 15:25:57 +00:00
Defer GinkgoRecover call in runKubectlWithTimeout to handle panic
This commit is contained in:
parent
dcf58fe50c
commit
e755988d59
@ -115,6 +115,7 @@ func runPortForward(ns, podName string, port int) (*exec.Cmd, int) {
|
||||
func runKubectlWithTimeout(timeout time.Duration, args ...string) string {
|
||||
logOutput := make(chan string)
|
||||
go func() {
|
||||
defer GinkgoRecover()
|
||||
logOutput <- runKubectl(args...)
|
||||
}()
|
||||
select {
|
||||
|
Loading…
Reference in New Issue
Block a user