make sure db is ready
All checks were successful
Test / Run unit and integration tests (pull_request) Successful in 4m39s
Test / Run compliance tests (pull_request) Successful in 5m7s

This commit is contained in:
Roy Crihfield 2023-09-28 20:43:02 +08:00
parent 0906cf3ab9
commit 027f014d31

View File

@ -125,5 +125,12 @@ jobs:
LEVELDB_ANCIENT: ./fixtures/chaindata/_data/small2/ancient
ETH_GENESIS_BLOCK: "0x8a3c7cddacbd1ab4ec1b03805fa2a287f3a75e43d87f4f987fcc399f5c042614"
run: |
until
ready_query='select max(version_id) from goose_db_version;'
version=$(docker exec -e PGPASSWORD=password test-ipld-eth-db-1 \
psql -tA cerc_testing -U vdbm -c "$ready_query")
[[ "$version" -ge 18 ]]
do sleep 1; done
./ipld-eth-state-snapshot/scripts/compare-snapshots.sh \
./snapshot-canonical ./snapshot-current