Skip to content

Commit

Permalink
ci: add wait step for testchain initialization in test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
shunkakinoki committed Mar 4, 2025
1 parent 83ed087 commit 4aac200
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,12 @@ jobs:
- name: Boot testchain
run: make start-testchain-verbose &

- name: Wait for testchain to initialize
run: |
echo "Waiting for testchain to initialize..."
sleep 15
curl -s http://localhost:8545 -H"Content-type: application/json" -X POST -d '{"jsonrpc":"2.0","method":"eth_syncing","params":[],"id":1}' || (echo "Testchain not ready"; exit 1)
echo "Testchain is ready"
- name: Test
run: make test

0 comments on commit 4aac200

Please sign in to comment.