Skip to content
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

refactor state-by-root tests to table-driven #15087

Merged
merged 1 commit into from
Mar 28, 2025
Merged

Conversation

kasey
Copy link
Contributor

@kasey kasey commented Mar 22, 2025

What type of PR is this?

Other

What does this PR do? Why is it needed?

The previous tests were not covering the state by root methods well. Several of the replay tests were not actually causing blocks to be loaded from the database. This PR consolidates a number of tests into table-driven tests that work in a more consistent way and reuse helpers to make it more clear how each test case differs.

Acknowledgements

@kasey kasey requested a review from a team as a code owner March 22, 2025 00:57
terencechain
terencechain previously approved these changes Mar 22, 2025
Copy link
Member

@terencechain terencechain left a comment

Choose a reason for hiding this comment

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

nice!

@kasey kasey force-pushed the stategen-test-refactor branch 2 times, most recently from 6e2e54d to 4c96a6a Compare March 25, 2025 22:43
@kasey kasey force-pushed the stategen-test-refactor branch from 4c96a6a to bf002fb Compare March 28, 2025 17:47
@kasey kasey added this pull request to the merge queue Mar 28, 2025
Merged via the queue into develop with commit 1b65e00 Mar 28, 2025
17 checks passed
@kasey kasey deleted the stategen-test-refactor branch March 28, 2025 23:41
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