From e2f21d362728d0f04052eb0faa75a99b9bff10e0 Mon Sep 17 00:00:00 2001 From: Michael Burman Date: Thu, 25 Jul 2024 13:02:36 +0300 Subject: [PATCH] Remove verifyReconcileFinished --- test/e2e/suite_test.go | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/test/e2e/suite_test.go b/test/e2e/suite_test.go index 36e07acee..7ead381c4 100644 --- a/test/e2e/suite_test.go +++ b/test/e2e/suite_test.go @@ -2251,17 +2251,3 @@ func CheckLabelsAnnotationsCreated(dcKey framework.ClusterKey, t *testing.T, ctx assert.True(t, cassDC.Spec.AdditionalAnnotations["anAnnotationKeyClusterLevel"] == "anAnnotationValueClusterLevel") return nil } - -func verifyClusterReconcileFinished(ctx context.Context, t *testing.T, f *framework.E2eFramework, kc *api.K8ssandraCluster) { - t.Log("check K8ssandraCluster reconciliation finished") - key := client.ObjectKey{Namespace: kc.Namespace, Name: kc.Name} - - assert.Eventually(t, func() bool { - kc := &api.K8ssandraCluster{} - if err := f.Client.Get(ctx, key, kc); err != nil { - t.Logf("failed to get K8ssandraCluster: %v", err) - return false - } - return kc.ObjectMeta.Generation == kc.Status.ObservedGeneration - }, polling.k8ssandraClusterStatus.timeout, polling.k8ssandraClusterStatus.interval, "cluster hasn't finished reconciliation") -}