From fe0f78aeef6398b976e0ea3ec39c1627098e523a Mon Sep 17 00:00:00 2001 From: Rohit <53218775+Rohit-0505@users.noreply.github.com> Date: Fri, 6 Dec 2024 13:47:17 +0530 Subject: [PATCH] Fix sporadic timeout error for core_test (#1179) --- internal/app/core_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/app/core_test.go b/internal/app/core_test.go index efb6b5e0b..81acb7aaa 100644 --- a/internal/app/core_test.go +++ b/internal/app/core_test.go @@ -74,7 +74,7 @@ var _ = Describe("Core", func() { By("waiting for the resource quota to be updated") resourceQuotaKey := client.ObjectKeyFromObject(resourceQuota) - Eventually(func(g Gomega) { + Eventually(ctx, func(g Gomega) { Expect(k8sClient.Get(ctx, resourceQuotaKey, resourceQuota)).To(Succeed()) g.Expect(resourceQuota.Status.Used).To(Equal(corev1alpha1.ResourceList{ corev1alpha1.ResourceRequestsCPU: resource.MustParse("1"),