From cfd74b9570d0a5395141d6942403495a6c4113c7 Mon Sep 17 00:00:00 2001 From: Jordan Liggitt Date: Thu, 5 Nov 2020 08:21:12 -0500 Subject: [PATCH] Deflake existing configmap count --- test/e2e/apimachinery/resource_quota.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/e2e/apimachinery/resource_quota.go b/test/e2e/apimachinery/resource_quota.go index ab57d932201..5514ab3f4df 100644 --- a/test/e2e/apimachinery/resource_quota.go +++ b/test/e2e/apimachinery/resource_quota.go @@ -297,14 +297,14 @@ var _ = SIGDescribe("ResourceQuota", func() { framework.ConformanceIt("should create a ResourceQuota and capture the life of a configMap.", func() { found, unchanged := 0, 0 // On contended servers the service account controller can slow down, leading to the count changing during a run. - // Wait up to 5s for the count to stabilize, assuming that updates come at a consistent rate, and are not held indefinitely. - wait.Poll(1*time.Second, 30*time.Second, func() (bool, error) { + // Wait up to 15s for the count to stabilize, assuming that updates come at a consistent rate, and are not held indefinitely. + wait.Poll(1*time.Second, time.Minute, func() (bool, error) { configmaps, err := f.ClientSet.CoreV1().ConfigMaps(f.Namespace.Name).List(context.TODO(), metav1.ListOptions{}) framework.ExpectNoError(err) if len(configmaps.Items) == found { - // loop until the number of configmaps has stabilized for 5 seconds + // loop until the number of configmaps has stabilized for 15 seconds unchanged++ - return unchanged > 4, nil + return unchanged > 15, nil } unchanged = 0 found = len(configmaps.Items)