File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -612,9 +612,12 @@ var _ = SIGDescribe("Kubectl Port forwarding", func() {
612
612
ginkgo .By ("Check the client error" )
613
613
gomega .Expect (err ).To (gomega .HaveOccurred ())
614
614
gomega .Expect (err .Error ()).To (gomega .Or (
615
- gomega .ContainSubstring ("connection reset by peer" ),
616
- gomega .ContainSubstring ("EOF" ),
617
- gomega .ContainSubstring ("context deadline exceeded" )))
615
+ // these two errors indicates remote connection is closed
616
+ gomega .ContainSubstring ("connection reset by peer" ), gomega .ContainSubstring ("EOF" ),
617
+ // this error indicates timeout when POST-ing data
618
+ gomega .ContainSubstring ("context deadline exceeded" ),
619
+ // this will happen when trying to write to a closed connection
620
+ gomega .ContainSubstring ("write: broken pipe" )))
618
621
619
622
ginkgo .By ("Check kubectl port-forward exit code" )
620
623
gomega .Expect (cmd .cmd .ProcessState .ExitCode ()).To (gomega .BeNumerically ("<" , 0 ), "kubectl port-forward should finish with non-zero exit code" )
You can’t perform that action at this time.
0 commit comments