diff --git a/test/e2e/specs/import_gitops_mgmtv3.go b/test/e2e/specs/import_gitops_mgmtv3.go index a2606427..68bbb1a7 100644 --- a/test/e2e/specs/import_gitops_mgmtv3.go +++ b/test/e2e/specs/import_gitops_mgmtv3.go @@ -255,8 +255,10 @@ func CreateMgmtV3UsingGitOpsSpec(ctx context.Context, inputGetter func() CreateM input.OwnedLabelName: "", }, } - Eventually(komega.List(rancherClusters, selectors...)).Should(Succeed()) - Expect(rancherClusters.Items).To(HaveLen(1)) + Eventually(func() { + Eventually(komega.List(rancherClusters, selectors...)).Should(Succeed()) + Expect(rancherClusters.Items).To(HaveLen(1)) + }, input.E2EConfig.GetIntervals(input.BootstrapClusterProxy.GetName(), "wait-rancher")...).Should(BeTrue()) rancherCluster = &rancherClusters.Items[0] Eventually(komega.Get(rancherCluster), input.E2EConfig.GetIntervals(input.BootstrapClusterProxy.GetName(), "wait-rancher")...).Should(Succeed())