diff --git a/e2e/resources/attachedcluster.go b/e2e/resources/attachedcluster.go index 063266d1..7eadd4a7 100644 --- a/e2e/resources/attachedcluster.go +++ b/e2e/resources/attachedcluster.go @@ -77,7 +77,7 @@ func RemoveAttachedCluster(client kurator.Interface, namespace, name string) err return nil } -// WaitAttachedClusterFitWith wait AttachedCluster sync with fit func. +// WaitAttachedClusterFitWith wait attachedCluster sync with fit func. func WaitAttachedClusterFitWith(client kurator.Interface, namespace, name string, fit func(attachedCluster *clusterv1a1.AttachedCluster) bool) { gomega.Eventually(func() bool { attachedClusterPresentOnCluster, err := client.ClusterV1alpha1().AttachedClusters(namespace).Get(context.TODO(), name, metav1.GetOptions{}) @@ -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 )