From 365f31e4e72f95177cc69b05da0d24b02c052d98 Mon Sep 17 00:00:00 2001 From: Naomi Kirby Date: Fri, 21 Jun 2024 07:25:56 -0700 Subject: [PATCH] Add connection retries to monitor integration tests too --- tools/autograph-client/integration_test_monitor.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/autograph-client/integration_test_monitor.sh b/tools/autograph-client/integration_test_monitor.sh index 9c5e9289f..78a5f81ea 100755 --- a/tools/autograph-client/integration_test_monitor.sh +++ b/tools/autograph-client/integration_test_monitor.sh @@ -6,7 +6,8 @@ set -o pipefail MONITOR_ENDPOINT=${1:-"http://localhost:8080"} # invoke a test monitor run in a lambda monitor -MONITOR_ERROR=$(curl --silent -w '\n' -X POST "${MONITOR_ENDPOINT}/2015-03-31/functions/function/invocations" -d '{}') +CURL_OPTIONS="--retry 10 --retry-max-time 120 --retry-connrefused" +MONITOR_ERROR=$(curl $CURL_OPTIONS -w '\n' -X POST "${MONITOR_ENDPOINT}/2015-03-31/functions/function/invocations" -d '{}') # Dump the log file, if it exists if [ -f "/tmp/autograph-lambda-logs.txt" ]; then