Skip to content

Commit

Permalink
poll instead of sleep in run-e2e script
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasMahe committed May 8, 2020
1 parent d1d4ed0 commit 4b6f019
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions scripts/run-e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,14 @@ docker service create \
mesg/engine:cli-dev

echo "waiting to give some time to the container to start and run"
sleep 10 &
wait $!
while true; do
printf '.'
block=$(curl --silent http://localhost:1317/node_info | jq .node_info.protocol_version.block)
if [[ -n $block ]]; then
break
fi
sleep 1
done

echo "starting tests"
go test -failfast -mod=readonly -v -count=1 ./e2e/...

0 comments on commit 4b6f019

Please sign in to comment.