-
Notifications
You must be signed in to change notification settings - Fork 620
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
Loockup msg server test #2205
Loockup msg server test #2205
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.
LGTM! 👍
This all LGTM, much cleaner! Going to wait on one more review in case I missed anything then should be good to merge! |
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, great work @hieuvubk
I have 2 follow-up questions. If questions make sense, can you please either address them or create issues for them to be addressed? Thank you
x/lockup/types/msgs_test.go
Outdated
|
||
// MsgExtendLockup | ||
func generateTestAddrs() (string, string) { |
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.
Can we move this helper to test utils?
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.
Yes I'll do it now
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.
What I meant is to define it on the app testing suite:
osmosis/app/apptesting/test_suite.go
Line 273 in 450e837
func (s *KeeperTestHelper) LockTokens(addr sdk.AccAddress, coins sdk.Coins, duration time.Duration) (lockID uint64) { |
If you go with my other suggestion of utilizing test suite, it would be convenient to reuse
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.
🚀
Merging since @czarcas7ic previously approved this and only my comments have been applied since |
Closes: #2183
What is the purpose of the change
MsgBeginUnlockingAll
MsgBeginUnlocking
MsgExtendLockup