-
Notifications
You must be signed in to change notification settings - Fork 609
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 keeper tests in x/mint #1952
Conversation
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 work so far! I would like to ask if we could avoid using a callback in the first test?
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.
Looking good! Added some comments! Please take a look!
Co-authored-by: Matt, Park <[email protected]>
Co-authored-by: Matt, Park <[email protected]>
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.
🌮
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.
🚀
* TestMintCoinsToFeeCollectorAndGetProportions refactor * TestDistrAssetToDeveloperRewardsAddrWhenNotEmpty refactor * add feePool and feeCollector check * comment * use hasPreExistingSupply and better readable mintKeeper * Update x/mint/keeper/keeper_test.go Co-authored-by: Matt, Park <[email protected]> * Update x/mint/keeper/keeper_test.go Co-authored-by: Matt, Park <[email protected]> * add testcase when nil dev reward address * use shorter keeper name for better readability Co-authored-by: Matt, Park <[email protected]> (cherry picked from commit ed55aeb)
* TestMintCoinsToFeeCollectorAndGetProportions refactor * TestDistrAssetToDeveloperRewardsAddrWhenNotEmpty refactor * add feePool and feeCollector check * comment * use hasPreExistingSupply and better readable mintKeeper * Update x/mint/keeper/keeper_test.go Co-authored-by: Matt, Park <[email protected]> * Update x/mint/keeper/keeper_test.go Co-authored-by: Matt, Park <[email protected]> * add testcase when nil dev reward address * use shorter keeper name for better readability Co-authored-by: Matt, Park <[email protected]> (cherry picked from commit ed55aeb) Co-authored-by: vuong <[email protected]>
Closes: #1915
What is the purpose of the change
Brief Changelog
TestMintCoinsToFeeCollectorAndGetProportions
andTestDistrAssetToDeveloperRewardsAddrWhenNotEmpty
Testing and Verifying
Documentation and Release Note
Unreleased
section inCHANGELOG.md
? no