From e4602abb4c21f275ef80ecb1da0e835ac937bf6b 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