@@ -2200,9 +2200,7 @@ var _ = ginkgo.Describe("e2e delete databases", func() {
22002200 framework .ExpectNoError (<- errChan )
22012201 }
22022202
2203- twoPodsContinuousConnectivityTest := func (f * framework.Framework ,
2204- node1Name string , node2Name string ,
2205- syncChan chan string , errChan chan error ) {
2203+ twoPodsContinuousConnectivityTest := func (f * framework.Framework , node1Name string , node2Name string , syncChan chan string , errChan chan error ) {
22062204 const (
22072205 pod1Name string = "connectivity-test-pod1"
22082206 pod2Name string = "connectivity-test-pod2"
@@ -2219,7 +2217,8 @@ var _ = ginkgo.Describe("e2e delete databases", func() {
22192217
22202218 ginkgo .By ("Checking initial connectivity from one pod to the other and verifying that the connection is achieved" )
22212219
2222- stdout , err := e2ekubectl .RunKubectl (f .Namespace .Name , "exec" , pod1Name , "--" , "curl" , fmt .Sprintf ("%s/hostname" , net .JoinHostPort (pod2IP , "8080" )))
2220+ stdout , err := e2ekubectl .RunKubectl (f .Namespace .Name , "exec" , pod1Name , "--" , "curl" , fmt .Sprintf ("%s/hostname" ,
2221+ net .JoinHostPort (pod2IP , fmt .Sprintf ("%d" , podPort ))))
22232222
22242223 if err != nil || stdout != pod2Name {
22252224 errChan <- fmt .Errorf ("Error: attempted connection to pod %s found err: %v" , pod2Name , err )
@@ -2234,7 +2233,8 @@ var _ = ginkgo.Describe("e2e delete databases", func() {
22342233 framework .Logf (msg + ": finish connectivity test." )
22352234 break L
22362235 default :
2237- stdout , err := e2ekubectl .RunKubectl (f .Namespace .Name , "exec" , pod1Name , "--" , "curl" , fmt .Sprintf ("%s/hostname" , net .JoinHostPort (pod2IP , "8080" )))
2236+ stdout , err := e2ekubectl .RunKubectl (f .Namespace .Name , "exec" , pod1Name , "--" , "curl" , fmt .Sprintf ("%s/hostname" ,
2237+ net .JoinHostPort (pod2IP , fmt .Sprintf ("%d" , podPort ))))
22382238 if err != nil || stdout != pod2Name {
22392239 errChan <- err
22402240 framework .Failf ("Error: attempted connection to pod %s found err: %v" , pod2Name , err )
0 commit comments