Skip to content

Add finalization test#42

Merged
dmidem merged 8 commits into
mainfrom
tmp-zebra-test-ci-repoint
Nov 5, 2025
Merged

Add finalization test#42
dmidem merged 8 commits into
mainfrom
tmp-zebra-test-ci-repoint

Conversation

@dmidem
Copy link
Copy Markdown
Contributor

@dmidem dmidem commented Sep 28, 2025

This PR adds a negative test to ensure ZSA issuance after finalization is rejected.

Also, to enable proper negative testing, it updates the mine_* helpers to return Result so tests can assert on expected failures.

@dmidem dmidem changed the title [DRAFT] Temporary: point zebra-test-ci to zsa-integration-demo-with-state (validate QED-it/zebra#89) Temporary: point zebra-test-ci to zsa-integration-demo-with-state and add finalization negative test (validate QED-it/zebra#89) Sep 29, 2025
@dmidem dmidem force-pushed the tmp-zebra-test-ci-repoint branch from f91f7d9 to a3014be Compare October 3, 2025 16:42
…e' (bypass env var); add FIXME to revert after PR verification
@PaulLaux PaulLaux marked this pull request as ready for review October 29, 2025 06:49
@PaulLaux PaulLaux marked this pull request as draft October 29, 2025 07:11
Copy link
Copy Markdown
Contributor

@PaulLaux PaulLaux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added minor fixes

Also, please updated title and description before merge.

Comment thread src/components/transactions.rs Outdated

for _ in 1..num_blocks {
mine_block(rpc_client, vec![], false);
mine_block(rpc_client, vec![], false).expect("block mined successfully");
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not propagate the error?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

Comment thread src/components/transactions.rs
Comment thread .github/workflows/zebra-test-ci.yaml Outdated
Comment on lines +30 to +31
# FIXME: Change to: ref: ${{ vars.ZEBRA_BRANCH_TO_TEST || 'zsa-integration-demo-with-state' }} after this PR is verified.
ref: zsa-integration-demo-with-state
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

revert to the original config once QED-it/zebra#89 (review) is merged

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Comment thread src/components/transactions.rs
@dmidem dmidem changed the title Temporary: point zebra-test-ci to zsa-integration-demo-with-state and add finalization negative test (validate QED-it/zebra#89) Return errors from mining helpers and add finalization negative test Nov 5, 2025
@dmidem dmidem marked this pull request as ready for review November 5, 2025 11:10
@PaulLaux PaulLaux changed the title Return errors from mining helpers and add finalization negative test Add finalization test Nov 5, 2025
@dmidem dmidem merged commit 65e7810 into main Nov 5, 2025
4 checks passed
@dmidem dmidem deleted the tmp-zebra-test-ci-repoint branch November 5, 2025 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants