Skip to content

Commit 78ad9a7

Browse files
authored
Merge pull request kubernetes#129707 from soltysh/expand_portforward_errors
e2e: expand error conditions when test-ing port-forward
2 parents 3213069 + 5cd7325 commit 78ad9a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/e2e/kubectl/portforward.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ 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")))
620+
gomega.ContainSubstring("write: broken pipe"), gomega.ContainSubstring("closed network connection")))
621621

622622
ginkgo.By("Check kubectl port-forward exit code")
623623
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)