From 5cd7325cd7e2cd6c48ef70e61aaae293e35fca96 Mon Sep 17 00:00:00 2001 From: Maciej Szulik Date: Mon, 20 Jan 2025 13:21:43 +0100 Subject: [PATCH] e2e: expand error conditions when test-ing port-forward Signed-off-by: Maciej Szulik --- test/e2e/kubectl/portforward.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/kubectl/portforward.go b/test/e2e/kubectl/portforward.go index 5ca2382223e..b3b9b8352fc 100644 --- a/test/e2e/kubectl/portforward.go +++ b/test/e2e/kubectl/portforward.go @@ -617,7 +617,7 @@ var _ = SIGDescribe("Kubectl Port forwarding", func() { // this error indicates timeout when POST-ing data gomega.ContainSubstring("context deadline exceeded"), // this will happen when trying to write to a closed connection - gomega.ContainSubstring("write: broken pipe"))) + gomega.ContainSubstring("write: broken pipe"), gomega.ContainSubstring("closed network connection"))) ginkgo.By("Check kubectl port-forward exit code") gomega.Expect(cmd.cmd.ProcessState.ExitCode()).To(gomega.BeNumerically("<", 0), "kubectl port-forward should finish with non-zero exit code")