From a2f87acb9717eaa6a5f1e035a6b548dc1b205d53 Mon Sep 17 00:00:00 2001 From: pacoxu Date: Tue, 9 Feb 2021 14:29:32 +0800 Subject: [PATCH] deflake a resource quota check for best-effort pods --- test/e2e/apimachinery/resource_quota.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/e2e/apimachinery/resource_quota.go b/test/e2e/apimachinery/resource_quota.go index 83c3cf2e77a..aa779eede1b 100644 --- a/test/e2e/apimachinery/resource_quota.go +++ b/test/e2e/apimachinery/resource_quota.go @@ -43,7 +43,7 @@ import ( const ( // how long to wait for a resource quota update to occur - resourceQuotaTimeout = 30 * time.Second + resourceQuotaTimeout = time.Minute podName = "pfpod" ) @@ -1734,7 +1734,7 @@ func waitForResourceQuota(c clientset.Interface, ns, quotaName string, used v1.R // updateResourceQuotaUntilUsageAppears updates the resource quota object until the usage is populated // for the specific resource name. func updateResourceQuotaUntilUsageAppears(c clientset.Interface, ns, quotaName string, resourceName v1.ResourceName) error { - return wait.Poll(framework.Poll, 1*time.Minute, func() (bool, error) { + return wait.Poll(framework.Poll, resourceQuotaTimeout, func() (bool, error) { resourceQuota, err := c.CoreV1().ResourceQuotas(ns).Get(context.TODO(), quotaName, metav1.GetOptions{}) if err != nil { return false, err