Restore waiting for the server to be up before launching tests. (#135)

Reviewed-on: cerc-io/laconicd#135
Co-authored-by: Thomas E Lackey <telackey@bozemanpass.com>
Co-committed-by: Thomas E Lackey <telackey@bozemanpass.com>
This commit is contained in:
Thomas E Lackey 2024-01-22 22:24:14 +00:00 committed by Thomas E Lackey
parent 055cfb2255
commit 28b9207bbe

View File

@ -17,6 +17,8 @@ cosmos_chain_id=laconic_9000-1
laconicd_rest_endpoint=http://laconicd:1317 laconicd_rest_endpoint=http://laconicd:1317
laconicd_gql_endpoint=http://laconicd:9473/api laconicd_gql_endpoint=http://laconicd:9473/api
docker compose exec laconicd sh -c "curl --retry 10 --retry-delay 3 --retry-connrefused http://127.0.0.1:9473/api"
# Run tests # Run tests
docker compose exec \ docker compose exec \
-e COSMOS_CHAIN_ID="$cosmos_chain_id" \ -e COSMOS_CHAIN_ID="$cosmos_chain_id" \