-
Notifications
You must be signed in to change notification settings - Fork 592
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 improvisation for Superfluid #1070
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1070 +/- ##
==========================================
+ Coverage 20.64% 20.96% +0.31%
==========================================
Files 193 194 +1
Lines 25270 25391 +121
==========================================
+ Hits 5218 5322 +104
- Misses 19096 19106 +10
- Partials 956 963 +7
Continue to review full report at Codecov.
|
x/superfluid/keeper/stake_test.go
Outdated
@@ -86,7 +86,7 @@ func (suite *KeeperTestSuite) SetupSuperfluidDelegate(delAddr sdk.AccAddress, va | |||
coins := sdk.Coins{sdk.NewInt64Coin(denom, amount)} | |||
lastLockID := suite.App.LockupKeeper.GetLastLockID(suite.Ctx) | |||
|
|||
lockID := suite.LockTokens(delAddr, coins, unbondingDuration) | |||
lockID := suite.lockupTestHelper.LockTokens(delAddr, coins, unbondingDuration) |
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.
LockTokens should be used on all LockTokens related tests, not only superfluid?
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.
Do you mean I should change other tests in other packages to use this as well?
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 once comments are resolved!
Changes made, planning to merge this as soon as lint and tests passes |
* add utility for SetupGammPoolsAndSuperfluidAssets * remove hardcoded gamm pool denoms * fix for main branch ctx => Ctx, app => App in tests * Test Changes * Add testing packages * Delete fmt * Fix lint * Remove multiple pacakges for apptesting * Add parameter for reward allocation * Improvements on test Co-authored-by: antstalepresh <stalepresh121@outlook.com> (cherry picked from commit 00b4b2c) # Conflicts: # x/superfluid/keeper/hooks_test.go # x/superfluid/keeper/keeper_test.go
* Test improvisation for Superfluid (#1070) * add utility for SetupGammPoolsAndSuperfluidAssets * remove hardcoded gamm pool denoms * fix for main branch ctx => Ctx, app => App in tests * Test Changes * Add testing packages * Delete fmt * Fix lint * Remove multiple pacakges for apptesting * Add parameter for reward allocation * Improvements on test Co-authored-by: antstalepresh <stalepresh121@outlook.com> (cherry picked from commit 00b4b2c) # Conflicts: # x/superfluid/keeper/hooks_test.go # x/superfluid/keeper/keeper_test.go * Fix merge conflictS Co-authored-by: Matt, Park <45252226+mattverse@users.noreply.github.com> Co-authored-by: mattverse <mattpark1028@gmail.com>
Description
This PR improvises superfluid testing environment in the following ways:
gauge.proto
For contributor use:
docs/
) or specification (x/<module>/spec/
)Unreleased
section inCHANGELOG.md
Files changed
in the Github PR explorer