From 374389e2097fb07fde103a6bfe4f7a243e2ec499 Mon Sep 17 00:00:00 2001 From: Andrea Mazzotti Date: Wed, 25 Sep 2024 18:32:16 +0200 Subject: [PATCH] Adjust timeout Signed-off-by: Andrea Mazzotti --- .../rancher-sandbox/ele-testhelpers/kubectl/kubectl.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vendor/github.com/rancher-sandbox/ele-testhelpers/kubectl/kubectl.go b/vendor/github.com/rancher-sandbox/ele-testhelpers/kubectl/kubectl.go index 28d39e88a..33b325e75 100644 --- a/vendor/github.com/rancher-sandbox/ele-testhelpers/kubectl/kubectl.go +++ b/vendor/github.com/rancher-sandbox/ele-testhelpers/kubectl/kubectl.go @@ -598,13 +598,13 @@ func GetObject(name, namespace, resourceType string, obj interface{}) (err error // EventuallyPodMatch uses ginkgo/gomega matcher to satisfy against a namespace/label pod func (k *Kubectl) EventuallyPodMatch(namespace, label string, timeout, poll time.Duration, mm gomega.OmegaMatcher) { - gomega.EventuallyWithOffset(1, func() []string { + gomega.Eventually(func() []string { pods, err := k.GetPodNames(namespace, label) if err != nil { fmt.Println(err) } return pods - }, timeout, poll).Should(mm) + }).WithOffset(1).WithTimeout(timeout).WithPolling(poll).Should(mm) } // ApplyYAML applies arbitrary interfaces with kubectl.