Skip to content

Commit

Permalink
Refactor tests with fake activation heights
Browse files Browse the repository at this point in the history
  • Loading branch information
upbqdn committed Feb 12, 2025
1 parent f38e4eb commit e3b51f6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/sub-ci-unit-tests-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,11 @@ jobs:
NETWORK: ${{ inputs.network || vars.ZCASH_NETWORK }}
run: |
docker pull ${{ vars.GAR_BASE }}/${{ vars.CI_IMAGE_NAME }}@${{ inputs.image_digest }}
docker run --tty -e TEST_FAKE_ACTIVATION_HEIGHTS=1 ${{ vars.GAR_BASE }}/${{ vars.CI_IMAGE_NAME }}@${{ inputs.image_digest }}
docker run -t \
-e TEST_FAKE_ACTIVATION_HEIGHTS=1 \
-e FEATURES="zebra-test" \
-e NETWORK="${{ inputs.network || vars.ZCASH_NETWORK }}" \
${{ vars.GAR_BASE }}/${{ vars.CI_IMAGE_NAME }}@${{ inputs.image_digest }}
# Test that Zebra syncs and checkpoints a few thousand blocks from an empty state.
test-empty-sync:
Expand Down
2 changes: 1 addition & 1 deletion docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ run_tests() {

elif [[ "${TEST_FAKE_ACTIVATION_HEIGHTS}" -eq "1" ]]; then
# Run state tests with fake activation heights.
exec cargo test --locked --release --lib --features "zebra-test" \
exec cargo test --locked --release --lib --features "${FEATURES}" \
--package zebra-state \
-- --nocapture --include-ignored with_fake_activation_heights

Expand Down

0 comments on commit e3b51f6

Please sign in to comment.