Skip to content

Commit

Permalink
E2E tests - [DO NOT MERGE]
Browse files Browse the repository at this point in the history
  • Loading branch information
slysunkin committed Nov 18, 2024
1 parent 1e424a0 commit 71dd92a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/e2e/kubeclient/kubeclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,15 +203,15 @@ func (kc *KubeClient) CreateManagedCluster(
i := 0
timeout := initialRetryTimeout
for i < numOfRetries {
output, err := client.Create(ctx, managedcluster, metav1.CreateOptions{})
_, err := client.Create(ctx, managedcluster, metav1.CreateOptions{})
if err == nil || apierrors.IsAlreadyExists(err) {
break
}
_, _ = fmt.Fprintf(GinkgoWriter, "client.Create: %+v\n", output)
i++
if i == numOfRetries {
Expect(err).NotTo(HaveOccurred(), "failed to create %s after %d retries", kind, numOfRetries)
}
_, _ = fmt.Fprintf(GinkgoWriter, "Create ManagedCluster, attempt #%d failed, retrying after %d seconds...\n", i, timeout)
time.Sleep(timeout)
timeout *= 2
}
Expand Down

0 comments on commit 71dd92a

Please sign in to comment.