fix race conditions in tests, call contract service instead of hardcoded values

This commit is contained in:
ramil
2021-04-19 23:07:38 +03:00
parent 7d88e78fa8
commit 9d590e15bc
5 changed files with 27 additions and 24 deletions
+2 -1
View File
@@ -55,5 +55,6 @@ jobs:
run: docker-compose -f docker-compose.test.yml -f docker-compose.yml up -d db dapptools contract eth-server
- name: Test
run: |
sleep 10
while [ "$(curl -s -o /dev/null -w ''%{http_code}'' localhost:8081)" != "200" ]; do echo "waiting for ipld-eth-server..." && sleep 5; done && \
while [ "$(curl -s -o /dev/null -w ''%{http_code}'' localhost:8545)" != "200" ]; do echo "waiting for geth-statediff..." && sleep 5; done && \
make integrationtest