From 71dd92aadbb2fcc1227f587d3005d5be5ed3701f Mon Sep 17 00:00:00 2001 From: Slava Lysunkin Date: Mon, 18 Nov 2024 08:16:04 -0600 Subject: [PATCH] E2E tests - [DO NOT MERGE] --- test/e2e/kubeclient/kubeclient.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/e2e/kubeclient/kubeclient.go b/test/e2e/kubeclient/kubeclient.go index e4eab41b6..285f1b278 100644 --- a/test/e2e/kubeclient/kubeclient.go +++ b/test/e2e/kubeclient/kubeclient.go @@ -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 }