From 245f2169a81bcff0c5e788837281fe3a7b6d0273 Mon Sep 17 00:00:00 2001 From: Matt Boersma Date: Tue, 1 Aug 2023 10:18:17 -0600 Subject: [PATCH] Fix retrying in Helm e2e helper func --- test/e2e/helm.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/e2e/helm.go b/test/e2e/helm.go index 908f8c69414..15a0149eed2 100644 --- a/test/e2e/helm.go +++ b/test/e2e/helm.go @@ -68,11 +68,11 @@ func InstallHelmChart(ctx context.Context, clusterProxy framework.ClusterProxy, } // Install the chart and retry if needed - Eventually(func(g Gomega) { + Eventually(func() error { cmd := exec.Command(helm, args...) Logf("Helm command: %s", cmd.String()) output, err := cmd.CombinedOutput() Logf("Helm install output: %s", string(output)) - Expect(err).NotTo(HaveOccurred()) + return err }, helmInstallTimeout, retryableOperationSleepBetweenRetries).Should(Succeed()) }