Skip to content

Commit 4619a89

Browse files
committed
e2e: expand error conditions when test-ing port-forward
Signed-off-by: Maciej Szulik <[email protected]>
1 parent 814e2c8 commit 4619a89

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/e2e/kubectl/portforward.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,8 @@ var _ = SIGDescribe("Kubectl Port forwarding", func() {
617617
// this error indicates timeout when POST-ing data
618618
gomega.ContainSubstring("context deadline exceeded"),
619619
// this will happen when trying to write to a closed connection
620-
gomega.ContainSubstring("write: broken pipe"), gomega.ContainSubstring("closed network connection")))
620+
gomega.ContainSubstring("write: broken pipe"), gomega.ContainSubstring("closed network connection"),
621+
gomega.ContainSubstring("connect: connection refused")))
621622

622623
ginkgo.By("Check kubectl port-forward exit code")
623624
gomega.Expect(cmd.cmd.ProcessState.ExitCode()).To(gomega.BeNumerically("<", 0), "kubectl port-forward should finish with non-zero exit code")

0 commit comments

Comments
 (0)