Skip to content

Commit 3f1dd4e

Browse files
mboersmak8s-infra-cherrypick-robot
authored andcommitted
Fix retrying in Helm e2e helper func
1 parent b14a7cc commit 3f1dd4e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/e2e/helm.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,11 @@ func InstallHelmChart(ctx context.Context, clusterProxy framework.ClusterProxy,
6868
}
6969

7070
// Install the chart and retry if needed
71-
Eventually(func(g Gomega) {
71+
Eventually(func() error {
7272
cmd := exec.Command(helm, args...)
7373
Logf("Helm command: %s", cmd.String())
7474
output, err := cmd.CombinedOutput()
7575
Logf("Helm install output: %s", string(output))
76-
Expect(err).NotTo(HaveOccurred())
76+
return err
7777
}, helmInstallTimeout, retryableOperationSleepBetweenRetries).Should(Succeed())
7878
}

0 commit comments

Comments
 (0)