diff --git a/.github/workflows/plugins.yml b/.github/workflows/plugins.yml index 5d3ddbd6..ff29b78b 100644 --- a/.github/workflows/plugins.yml +++ b/.github/workflows/plugins.yml @@ -72,7 +72,7 @@ jobs: run: ./script/start.sh & - name: Wait for bundler at port 3000 - run: RPC_URL='localhost:3000' SLEEP_DURATION_SECONDS=1 ./script/wait-for-rpc.sh + run: RPC_URL='localhost:3000' SLEEP_DURATION_SECONDS=1 ./script/wait-for-rpc.sh || docker ps || docker ps -q | xargs -L 1 docker logs - name: Run hardhat integration tests run: yarn hardhat test diff --git a/packages/plugins/script/wait-for-rpc.sh b/packages/plugins/script/wait-for-rpc.sh index 8fd1b9eb..2626d36e 100755 --- a/packages/plugins/script/wait-for-rpc.sh +++ b/packages/plugins/script/wait-for-rpc.sh @@ -7,7 +7,7 @@ max_tries=100 counter=0 function check_rpc() { - curl -s -X POST \ + curl -X POST \ --data '{"jsonrpc":"2.0","method":"eth_chainId","params":[],"id":0}' \ -H "Content-Type: application/json" \ "$RPC_URL" \ @@ -15,6 +15,7 @@ function check_rpc() { } while ! check_rpc; do + echo "sleeping for $SLEEP_DURATION_SECONDS" sleep $SLEEP_DURATION_SECONDS counter=$((counter + 1)) if (( counter >= max_tries )); then