diff --git a/e2e/resource_quota_exceeded_test.go b/e2e/resource_quota_exceeded_test.go index 99f2232b..050cc15e 100644 --- a/e2e/resource_quota_exceeded_test.go +++ b/e2e/resource_quota_exceeded_test.go @@ -178,10 +178,10 @@ var _ = Describe("exceeding a Tenant resource quota", func() { }, defaultTimeoutInterval, defaultPollInterval).Should(Succeed()) }) By("ensuring the status has been blocked with actual usage", func() { - Eventually(func() corev1.ResourceList { + Eventually(func() bool { _ = k8sClient.Get(context.TODO(), types.NamespacedName{Name: n, Namespace: ns}, rq) - return rq.Status.Hard - }, defaultTimeoutInterval, defaultPollInterval).Should(Equal(rq.Status.Used)) + return rq.Status.Hard.Pods().String() == rq.Status.Used.Pods().String() + }, defaultTimeoutInterval, defaultPollInterval).Should(BeTrue()) }) By("creating an exceeded Pod", func() { pod := &corev1.Pod{