Check if laconicd is up before running test script
All checks were successful
Lint / lint (18.x) (pull_request) Successful in 1m33s
Tests / cli_tests (18.x) (pull_request) Successful in 8m18s

This commit is contained in:
Prathamesh Musale 2024-06-17 13:06:56 +05:30
parent eb76c47001
commit ed8cb7295f

View File

@ -2,6 +2,9 @@
set -e
# Wait for the laconid endpoint to come up
docker compose exec laconicd sh -c "curl --retry 20 --retry-delay 3 --retry-connrefused http://127.0.0.1:9473/api"
# Get the key from laconicd
laconicd_key=$(yes | docker compose exec laconicd laconicd keys export mykey --unarmored-hex --unsafe)
@ -29,8 +32,5 @@ EOL
)
echo "$config" > "$config_file"
# Wait for the laconid endpoint to come up
docker compose exec laconicd sh -c "curl --retry 10 --retry-delay 3 --retry-connrefused http://127.0.0.1:9473/api"
# Run tests
TEST_ACCOUNT=$laconicd_account_address yarn test