Skip to content

Commit

Permalink
test: Add retries to curl command
Browse files Browse the repository at this point in the history
[ upstream commit 47f8d32 ]

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>
Signed-off-by: Jarno Rajahalme <jarno@covalent.io>
  • Loading branch information
christarazi authored and joestringer committed Jul 1, 2020
1 parent b2117c3 commit 2127c82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/k8sT/istio.go
Expand Up @@ -83,7 +83,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 2127c82

Please sign in to comment.