-
Notifications
You must be signed in to change notification settings - Fork 47
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
block_builder
tests: fix and use new infrastructure
#79
Comments
@plafer could you add more context on what needs to be done? What should be achieved by this issue? |
The ultimate goal is to get rid of The objects that I started creating to replace/enhance its functionality are:
These are already used in some tests (except for |
Thanks for the update.
And why do we want to get rid of it? What features is it lacking that are introduced by the other mocks? |
It was a hack at the time before we had With the other mocks, I also took this change as an opportunity to create objects that make tests more readable and reduce the amount of copy/paste. It's still a WIP though (and hence this issue). |
#77 introduced a new infrastructure useful especially for the
block_builder
tests. It is currently incomplete, and needs to be fixed before everyblock_builder
test can be updated to use it. SpecificallyMockStoreSuccessBuilder
andbuild_expected_block()
need to compute the correct notes rootMockStoreSuccessBuilder
:new()
needs to be replaced with a few different constructors (includingfrom_batches()
) which allow it to know the initial account IDs and state.Once this is done, use this new test code everywhere, and remove the obsolete
DummyProvenTxGenerator
.The text was updated successfully, but these errors were encountered: