From fba0dc6af688f8d58700245bcfc92c41ee5f86eb Mon Sep 17 00:00:00 2001 From: Luke Kingland <58986931+lkingland@users.noreply.github.com> Date: Mon, 6 Jun 2022 18:31:54 +0900 Subject: [PATCH] fix: increase timeout when testing int cluster availability (#1032) --- hack/test.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/hack/test.sh b/hack/test.sh index e8720163..5e350ff4 100755 --- a/hack/test.sh +++ b/hack/test.sh @@ -41,13 +41,17 @@ EOF exit 1 fi echo "Retrying..." - sleep 5 + sleep 10 done - sleep 60 + # Sleep to avoid a racing condition where `kubectl wait` below will fail + # immediately that the "echo" route is not found and can thus not be waited + # upon to complete. + sleep 30 - # wait for the route to become ready - kubectl wait --for=condition=Ready route echo -n func + # Wait for the test to become available + echo "${em} Waiting for echo route${me}" + kubectl wait --for=condition=Ready route echo -n func --timeout=120s echo "${em} Invoking echo server${me}" curl http://echo.func.127.0.0.1.sslip.io/