From 2127c82aa940b0891d2e6f825c9b5e6d1a21f427 Mon Sep 17 00:00:00 2001 From: Chris Tarazi Date: Tue, 9 Jun 2020 10:23:36 -0700 Subject: [PATCH] test: Add retries to curl command [ upstream commit 47f8d321da248699d14932e43ed7407e620e4194 ] The curl is reaching out to a world / external resource so retrying is acceptable, and helps test flakes. Fixes: https://github.com/cilium/cilium/pull/11797 Signed-off-by: Chris Tarazi Signed-off-by: Jarno Rajahalme --- test/k8sT/istio.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/k8sT/istio.go b/test/k8sT/istio.go index 6731565cf28b..50f0d1282834 100644 --- a/test/k8sT/istio.go +++ b/test/k8sT/istio.go @@ -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")