-
Notifications
You must be signed in to change notification settings - Fork 14
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
Implement pallet for mock-skip blocks on runtimes #487
base: main
Are you sure you want to change the base?
Implement pallet for mock-skip blocks on runtimes #487
Conversation
#[cfg(test)] | ||
mod mock; | ||
|
||
#[cfg(test)] | ||
mod tests; |
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.
If the whole content of mock and test are only supposed to be used when instant-seal
is available, wouldn't it make more sense to instead move the feature flag macro above the mod
imports here? Then we can remove all the annotations from the mock.rs
and test.rs
files itself.
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.
True 👍🏼 I forgot about those macro flags when testing some things earlier
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.
Maybe we can even move them into the pub mod pallet {}
definition? Not sure if that works but then no extra macros were needed.
This PR introduces a new pallet used to mock block skipping when testing wasm-deploy.
The idea behind it is described in this ticket in detail.
I'll add a broader description before marking the PR as ready for review.
Closes #486.