Skip to content

Commit 874e788

Browse files
nicob87grs
authored andcommitted
Sleeping before port forwarding. command is crashing without this, not sure
yet what is the resource that it is not ready yet.
1 parent dfc9c49 commit 874e788

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/smoke/tcp_echo/tcp_echo.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,13 @@ func (r *SmokeTestRunner) RunTests() {
108108
fmt.Printf("Public service ClusterIp = %q\n", publicService.Spec.ClusterIP)
109109
fmt.Printf("Private service ClusterIp = %q\n", privateService.Spec.ClusterIP)
110110

111+
time.Sleep(20 * time.Second)
112+
111113
r.Pub1Cluster.KubectlExecAsync("port-forward service/tcp-go-echo 9090:9090")
112114
r.Priv1Cluster.KubectlExecAsync("port-forward service/tcp-go-echo 9091:9090")
113115

114-
time.Sleep(2 * time.Second) //give time to port forwarding to start
116+
time.Sleep(20 * time.Second) //give time to port forwarding to start
115117

116-
//sendReceive(publicService.Spec.ClusterIP + ":9090")
117-
//sendReceive(privateService.Spec.ClusterIP + ":9090")
118118
sendReceive("127.0.0.1:9090")
119119
sendReceive("127.0.0.1:9091")
120120
}

0 commit comments

Comments
 (0)