-
Notifications
You must be signed in to change notification settings - Fork 61
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
test for HandleCompleteSend #672
test for HandleCompleteSend #672
Conversation
ToAddress: zone.DelegationAddress.Address, | ||
Amount: sdk.NewCoins(sdk.NewCoin(zone.BaseDenom, sdk.NewInt(1_000_000))), | ||
}, | ||
memo: fmt.Sprintf("unbondSend/%d", complete.Unix()), |
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.
this is an invlaid memo for a send from deposit -> delegation (it will probably work, but the unbondSend/xxxx memo is always from delegate -> recipient of unbonded tokens)
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
Codecov Report
@@ Coverage Diff @@
## main #672 +/- ##
==========================================
+ Coverage 13.97% 14.00% +0.03%
==========================================
Files 243 243
Lines 63049 63049
==========================================
+ Hits 8812 8832 +20
+ Misses 53525 53503 -22
- Partials 712 714 +2
Flags with carried forward coverage won't be shown. Click here to find out more. |
Requires linitng. |
Ok! |
@@ -2862,6 +2863,78 @@ func (suite *KeeperTestSuite) TestGetValidatorForToken() { | |||
} | |||
} | |||
|
|||
func (suite *KeeperTestSuite) TestHandleCompleteSend() { | |||
suite.Run("TestHandleCompleteSend", func() { |
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.
Hey plz move this setup after line 2917 so we can know the name of each test case when we can run the testing
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
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.
Left some suggestions, overall lgtm! thank @DongLieu
c228784
Co-authored-by: Nguyen Thanh Nhan <[email protected]>
Co-authored-by: Nguyen Thanh Nhan <[email protected]>
Co-authored-by: Nguyen Thanh Nhan <[email protected]>
Ok |
1. Summary
Fixes #617
2.Type of change
3. Implementation details
4. How to test/use
5. Checklist
6. Limitations (optional)
7. Future Work (optional)