Update the test
This commit is contained in:
parent
1277fa1312
commit
957013e06c
9
.github/workflows/tests.yml
vendored
9
.github/workflows/tests.yml
vendored
@ -115,7 +115,7 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
COUNT=0
|
COUNT=0
|
||||||
ATTEMPTS=10
|
ATTEMPTS=15
|
||||||
until $(docker compose -f "$GITHUB_WORKSPACE/stack-orchestrator/docker/local/docker-compose-go-ethereum.yml" cp go-ethereum:/root/transaction_info/STATEFUL_TEST_DEPLOYED_ADDRESS ./STATEFUL_TEST_DEPLOYED_ADDRESS) || [[ $COUNT -eq $ATTEMPTS ]]; do echo -e "$(( COUNT++ ))... \c"; sleep 10; done
|
until $(docker compose -f "$GITHUB_WORKSPACE/stack-orchestrator/docker/local/docker-compose-go-ethereum.yml" cp go-ethereum:/root/transaction_info/STATEFUL_TEST_DEPLOYED_ADDRESS ./STATEFUL_TEST_DEPLOYED_ADDRESS) || [[ $COUNT -eq $ATTEMPTS ]]; do echo -e "$(( COUNT++ ))... \c"; sleep 10; done
|
||||||
[[ $COUNT -eq $ATTEMPTS ]] && echo "Could not find the successful contract deployment" && (exit 1)
|
[[ $COUNT -eq $ATTEMPTS ]] && echo "Could not find the successful contract deployment" && (exit 1)
|
||||||
cat ./STATEFUL_TEST_DEPLOYED_ADDRESS
|
cat ./STATEFUL_TEST_DEPLOYED_ADDRESS
|
||||||
@ -126,3 +126,10 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
docker compose -f "$GITHUB_WORKSPACE/stack-orchestrator/docker/local/docker-compose-go-ethereum.yml" exec go-ethereum /bin/bash /root/transaction_info/NEW_TRANSACTION
|
docker compose -f "$GITHUB_WORKSPACE/stack-orchestrator/docker/local/docker-compose-go-ethereum.yml" exec go-ethereum /bin/bash /root/transaction_info/NEW_TRANSACTION
|
||||||
echo $?
|
echo $?
|
||||||
|
|
||||||
|
- name: Make sure we see entries in the header table
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
rows=$(docker exec -i 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)
|
||||||
|
echo $rows
|
||||||
|
Loading…
Reference in New Issue
Block a user