Skip to content

Commit

Permalink
connectivity: Wait for test-conn-disrupt-server deployment
Browse files Browse the repository at this point in the history
Otherwise, clients might connect to a single instance.

Signed-off-by: Martynas Pumputis <[email protected]>
  • Loading branch information
brb committed Jul 10, 2023
1 parent eb1275e commit 2537baf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions connectivity/check/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -622,6 +622,12 @@ func (ct *ConnectivityTest) deploy(ctx context.Context) error {
}
}

// Make sure that the server deployment is ready to spread client connections
err := WaitForDeployment(ctx, ct, ct.clients.src, ct.params.TestNamespace, testConnDisruptServerDeploymentName)
if err != nil {
ct.Failf("%s deployment is not ready: %s", testConnDisruptServerDeploymentName, err)
}

_, err = ct.clients.src.GetService(ctx, ct.params.TestNamespace, testConnDisruptServiceName, metav1.GetOptions{})
if err != nil {
ct.Logf("✨ [%s] Deploying %s service...", ct.clients.dst.ClusterName(), testConnDisruptServiceName)
Expand Down

0 comments on commit 2537baf

Please sign in to comment.