ci: have 50 blockchain retries
This commit is contained in:
parent
d8775e307f
commit
9eabfc939a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue