Defer GinkgoRecover call in runKubectlWithTimeout to handle panic

This commit is contained in:
Dr. Stefan Schimanski 2015-10-28 19:20:48 -05:00
parent dcf58fe50c
commit e755988d59

View File

@ -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 {