Update the read rows command.

This commit is contained in:
Abdul Rabbani 2022-05-27 09:16:38 -04:00
parent 0a4079f8bb
commit 6a44b2e1f9

View File

@ -160,6 +160,7 @@ jobs:
- name: Make sure we see entries in the header table - name: Make sure we see entries in the header table
shell: bash shell: bash
run: | run: |
rows=$(docker exec -i access-node psql -U vdbm -d vulcanize_testing_v4 -AXqtc "SELECT COUNT(*) FROM eth.header_cids") rows=$(docker compose -f "$GITHUB_WORKSPACE/stack-orchestrator/docker/local/docker-compose-go-ethereum.yml" exec access-node psql -U vdbm -d vulcanize_testing_v4 -AXqtc "SELECT COUNT(*) FROM eth.header_cids")
[[ "$rows" -lt "0" ]] && echo "We could not find any rows in postgres table." && (exit 1) [[ "$rows" -lt "0" ]] && echo "We could not find any rows in postgres table." && (exit 1)
echo $rows echo $rows
docker compose -f "$GITHUB_WORKSPACE/stack-orchestrator/docker/local/docker-compose-go-ethereum.yml" exec access-node psql -U vdbm -d vulcanize_testing_v4 -AXqtc "SELECT * FROM eth.header_cids")