From f53f6ff6655f459b26d1960d5db74d2326b1860f Mon Sep 17 00:00:00 2001 From: LiZhenCheng9527 Date: Sun, 4 Feb 2024 19:26:42 +0800 Subject: [PATCH] Reduced inspection intervals Signed-off-by: LiZhenCheng9527 --- e2e/resources/attachedcluster.go | 2 +- e2e/resources/constant.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/e2e/resources/attachedcluster.go b/e2e/resources/attachedcluster.go index 063266d1..52c51fa3 100644 --- a/e2e/resources/attachedcluster.go +++ b/e2e/resources/attachedcluster.go @@ -85,5 +85,5 @@ func WaitAttachedClusterFitWith(client kurator.Interface, namespace, name string return false } return fit(attachedClusterPresentOnCluster) - }, pollTimeout, pollInterval).Should(gomega.Equal(true)) + }, pollTimeout, pollIntervalInHostCluster).Should(gomega.Equal(true)) } diff --git a/e2e/resources/constant.go b/e2e/resources/constant.go index ab219b09..1faeb185 100644 --- a/e2e/resources/constant.go +++ b/e2e/resources/constant.go @@ -19,8 +19,8 @@ package resources import "time" const ( - // pollInterval defines the interval time for a poll operation. - pollInterval = 5 * time.Second + // pollIntervalInHostCluster defines the interval time for a poll operation. + pollIntervalInHostCluster = 3 * time.Second // pollTimeout defines the time after which the poll operation times out. pollTimeout = 420 * time.Second )