-
Notifications
You must be signed in to change notification settings - Fork 93
chore(conductor): remove unnecessary block hashes from test mounts #1973
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
base: main
Are you sure you want to change the base?
chore(conductor): remove unnecessary block hashes from test mounts #1973
Conversation
| } | ||
|
|
||
| #[macro_export] | ||
| macro_rules! mount_firm_update_commitment_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.
I split this up for readability in tests, but I'm not sure if this makes it too opaque to a reader without context. Happy to change this back if needed.
|
This PR is stale because it has been open 45 days with no activity. Remove stale label or this PR will be |
|
Marking as |
|
Conflicts on stale PR, is it still relevant and need updated or now obsolete? |
|
@joroshiba would still be nice to have, but will take a bit of adjustment with the v2 changes. Will try to get conflicts addressed ASAP |
Summary
Removes unnecessary block hashes from test mounts by maintaining current block hashes in
TestConductor.Background
Conductor tests have gotten unruly with the number and specificity of mounts needed to make them function properly. This is meant to make the tests more readable, simpler, and easier to write.
Changes
TestRollupStatetoTestConductor, which keeps track of the current block hash initializers (the repeated number in our test hashes) as well as the current firm block number (in case soft is updated but not firm).mount_update_commitment_stateinto soft and firm variants for readability.Testing
All tests are passing.
Changelogs
No updates requried.
Related Issues
part of #1927