From 1b7598e351b52468182def5d2a2907827c6910f0 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Tue, 8 Jan 2019 08:29:41 -0800 Subject: [PATCH] Add retries to RPC API probe --- ci/localnet-sanity.sh | 4 ++-- net/remote/remote-sanity.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ci/localnet-sanity.sh b/ci/localnet-sanity.sh index a0d65c2d0f..dc9689733c 100755 --- a/ci/localnet-sanity.sh +++ b/ci/localnet-sanity.sh @@ -85,8 +85,8 @@ echo "--- Node count" echo "--- RPC API: getTransactionCount" ( set -x - curl -X POST \ - -H 'Content-Type: application/json' \ + curl --retry 5 --retry-delay 2 --retry-connrefused \ + -X POST -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1, "method":"getTransactionCount"}' \ http://localhost:8899 ) || flag_error diff --git a/net/remote/remote-sanity.sh b/net/remote/remote-sanity.sh index c13244a0b6..95f93e840f 100755 --- a/net/remote/remote-sanity.sh +++ b/net/remote/remote-sanity.sh @@ -93,8 +93,8 @@ esac echo "--- RPC API: getTransactionCount" ( set -x - curl -X POST \ - -H 'Content-Type: application/json' \ + curl --retry 5 --retry-delay 2 --retry-connrefused \ + -X POST -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1, "method":"getTransactionCount"}' \ http://"$entrypointIp":8899 )