don't wait for pg data

This commit is contained in:
Roy Crihfield 2024-08-05 12:09:33 -05:00
parent 8cc454b5a0
commit a931f0eeb1

View File

@ -1,6 +1,6 @@
#!/bin/bash
set -ex
set -ex -o pipefail
stack_dir=$(readlink -f "$1")
[[ -d "$stack_dir" ]]
@ -50,11 +50,3 @@ if [[ -n "$GITHUB_ENV" ]]; then
# Read a private key so we can send from a funded account
echo DEPLOYER_PRIVATE_KEY="$(curl -s $bootnode_endpoint/accounts.csv | head -1 | cut -d',' -f3)" >> "$GITHUB_ENV"
fi
export PGPASSWORD=password
query_blocks_exist='SELECT exists(SELECT block_number FROM ipld.blocks LIMIT 1);'
echo "Waiting until we have some data written..."
until [[ "$(psql -qtA cerc_testing -h localhost -U vdbm -p 8077 -c "$query_blocks_exist")" -eq 't' ]]; do
sleep 2
done