Skip to content

Commit

Permalink
test: Add retries to curl command
Browse files Browse the repository at this point in the history
The curl is reaching out to a world / external resource so retrying is
acceptable, and helps test flakes.

Fixes: #11797

Signed-off-by: Chris Tarazi <chris@isovalent.com>
  • Loading branch information
christarazi authored and nebril committed Jun 10, 2020
1 parent 1319eff commit 47f8d32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/k8sT/istio.go
Expand Up @@ -87,7 +87,7 @@ var _ = Describe("K8sIstioTest", func() {
kubectl = helpers.CreateKubectl(helpers.K8s1VMName(), logger)

By("Downloading cilium-istioctl")
res := kubectl.Exec(fmt.Sprintf("curl -L %s | tar xz", ciliumIstioctlURL))
res := kubectl.Exec(fmt.Sprintf("curl --retry 5 -L %s | tar xz", ciliumIstioctlURL))
res.ExpectSuccess("unable to download %s", ciliumIstioctlURL)
res = kubectl.ExecShort("./cilium-istioctl version")
res.ExpectSuccess("unable to execute cilium-istioctl")
Expand Down

0 comments on commit 47f8d32

Please sign in to comment.