mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-14 22:33:34 +00:00
e2e: expand error conditions when test-ing port-forward
Signed-off-by: Maciej Szulik <soltysh@gmail.com>
This commit is contained in:
parent
32130691a4
commit
5cd7325cd7
@ -617,7 +617,7 @@ var _ = SIGDescribe("Kubectl Port forwarding", func() {
|
|||||||
// this error indicates timeout when POST-ing data
|
// this error indicates timeout when POST-ing data
|
||||||
gomega.ContainSubstring("context deadline exceeded"),
|
gomega.ContainSubstring("context deadline exceeded"),
|
||||||
// this will happen when trying to write to a closed connection
|
// 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")
|
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")
|
gomega.Expect(cmd.cmd.ProcessState.ExitCode()).To(gomega.BeNumerically("<", 0), "kubectl port-forward should finish with non-zero exit code")
|
||||||
|
Loading…
Reference in New Issue
Block a user