-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(specs): verify intermidiate block state in blockchain test #1075
base: main
Are you sure you want to change the base?
Conversation
cc385d3
to
4f2e55b
Compare
add a unit test to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, just a few comments.
@@ -570,7 +577,12 @@ def make_fixture( | |||
), | |||
) | |||
|
|||
self.verify_post_state(t8n, alloc) | |||
if block.expected_post_state: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could try to move this into the generate_block_data
so it's verified for make_fixture
and make_hive_fixture
too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this violates the logic. because function states generate_block_data and it will be implicit that it also verifies the post state
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, I made some fixes to the test added and the unit test too.
I'll wait until CI passed and then merge, thanks!
Once #1085 is merged we can rebase and CI should be green. |
ποΈ Description
Allow verification of individual block states in blockchain test
π Related Issues
#1033
β Checklist
mkdocs serve
locally and verified the auto-generated docs for new tests in the Test Case Reference are correctly formatted.