mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-05 10:19:50 +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 {
|
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