increase curl timeout for geth check requests

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2019-05-08 14:17:36 +02:00
parent 3dc350658d
commit 7f824bd841
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
1 changed files with 4 additions and 1 deletions

View File

@ -7,7 +7,9 @@
#!/usr/bin/env bash
set -e
echo -n "Geth synced: "
RESP=$(curl -s -X POST -H 'Content-type:application/json' \
RESP=$(curl -s -X POST \
--connect-timeout 5 \
-H 'Content-type:application/json' \
--data '{"jsonrpc":"2.0","method":"eth_syncing","id":1}' \
http://localhost:{{ geth_rpc_port }}/)
echo "${RESP}" | jq -e ".result == false" \
@ -42,3 +44,4 @@
- id: '{{ geth_cont_name }}-rpc-status'
type: script
script: '{{ geth_sync_check_script }}'
timeout: '5s'