From e755988d5922df4d0e111a0167d9859359113463 Mon Sep 17 00:00:00 2001 From: "Dr. Stefan Schimanski" Date: Wed, 28 Oct 2015 19:20:48 -0500 Subject: [PATCH] Defer GinkgoRecover call in runKubectlWithTimeout to handle panic --- test/e2e/portforward.go | 1 + 1 file changed, 1 insertion(+) diff --git a/test/e2e/portforward.go b/test/e2e/portforward.go index 49f8c6c42327..3bc392083301 100644 --- a/test/e2e/portforward.go +++ b/test/e2e/portforward.go @@ -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 {