Skip to content

Commit

Permalink
Add connection retries to monitor integration tests too
Browse files Browse the repository at this point in the history
  • Loading branch information
oskirby committed Jun 21, 2024
1 parent a2f2415 commit 365f31e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/autograph-client/integration_test_monitor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 365f31e

Please sign in to comment.