From f0c5b11496ddc45badd620ee146fee17838ebaf8 Mon Sep 17 00:00:00 2001 From: Andrea Mazzotti Date: Thu, 26 Sep 2024 09:39:37 +0200 Subject: [PATCH] Restore vendored helper 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 33b325e75..28d39e88a 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.Eventually(func() []string { + gomega.EventuallyWithOffset(1, func() []string { pods, err := k.GetPodNames(namespace, label) if err != nil { fmt.Println(err) } return pods - }).WithOffset(1).WithTimeout(timeout).WithPolling(poll).Should(mm) + }, timeout, poll).Should(mm) } // ApplyYAML applies arbitrary interfaces with kubectl.