-
Notifications
You must be signed in to change notification settings - Fork 24
update mocks to have >1 ED and update breaking tests #2619
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
update mocks to have >1 ED and update breaking tests #2619
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 🚀 New features to boost your workflow:
|
mattheworris
left a comment
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.
🚢 it!
…odify-mockrs-to-have-ed-1-to-test-balances-less-than-ed
saraswatpuneet
left a comment
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, since benchmarking.rs got updated we may want to run benchmarks for time-release
enddynayn
left a comment
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.
👍 great!
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'm not really understanding why these benchmarks wouldn't have worked without the ED.
Or is it just that we don't want the generated weights to include reaping or creating an account?
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 thought it was due to changes in the mock runtime, however, benchmarking uses the real runtime. Therefore, I am guessing it might be due to changes in the polkadot-sdk?
I double checked by removing the benchmarking.rs changes: removing the ED causes the benchmarking tests to fail because the values in the time-release schedule are less than ED, and the error is: "Account cannot exist with the funds that would be given".
JoeCap08055
left a comment
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.
One non-blocking question, but otherwise looks good.
Nice work!
Goal
The goal of this PR is to update mocks to have >1 ED so that we can test over and under cases in the future.
Closes #1852
Discussion
Checklist