From a931f0eeb19a6a1a3213c4fbda28ff3c3cc6a13a Mon Sep 17 00:00:00 2001 From: Roy Crihfield Date: Mon, 5 Aug 2024 12:09:33 -0500 Subject: [PATCH] don't wait for pg data --- scripts/run-test-stack.sh | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/scripts/run-test-stack.sh b/scripts/run-test-stack.sh index 1401249..c0ae97d 100755 --- a/scripts/run-test-stack.sh +++ b/scripts/run-test-stack.sh @@ -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