Skip to content

Commit

Permalink
chore: add --fail --show-error to curl
Browse files Browse the repository at this point in the history
  • Loading branch information
gakonst committed May 3, 2021
1 parent d8fce12 commit 7f8cfae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ops/scripts/integration-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ JSON='{"jsonrpc":"2.0","id":0,"method":"rollup_getInfo","params":[]}'

if [[ ! -z "$URL" ]]; then
# get the addrs from the URL provided
ADDRESSES=$(curl --silent --retry-connrefused --retry $RETRIES --retry-delay 5 $URL)
ADDRESSES=$(curl --fail --show-error --silent --retry-connrefused --retry $RETRIES --retry-delay 5 $URL)
export ADDRESS_MANAGER=$(echo $ADDRESSES | jq -r '.AddressManager')
fi

# wait for the sequencer to be up
curl \
--silent \
--fail \
--show-error \
-H "Content-Type: application/json" \
--retry-connrefused \
--retry $RETRIES \
Expand Down

0 comments on commit 7f8cfae

Please sign in to comment.