ci: have 50 blockchain retries

This commit is contained in:
Adam Uhlíř 2023-04-27 15:27:27 +02:00
parent d8775e307f
commit 9eabfc939a
No known key found for this signature in database
GPG Key ID: 1D17A9E81F76155B
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ jobs:
fi
npm ci
npm start -- --verbose &
until curl -s http://localhost:8545/ -X POST -H "Content-Type: application/json" --data '{"method":"eth_chainId","params":[],"id":1,"jsonrpc":"2.0"}'; do echo "Waiting for blockchain to startup" && sleep 1 ; done
for i in {1..50}; do curl -s http://localhost:8545/ -X POST -H "Content-Type: application/json" --data '{"method":"eth_chainId","params":[],"id":1,"jsonrpc":"2.0"}' && break || (echo "Waiting for blockchain to startup" && sleep 1) ; done
- name: Contract tests
run: make -j${ncpu} testContracts