diff --git a/x/concentrated-liquidity/tick_test.go b/x/concentrated-liquidity/tick_test.go index 5c40db42dde..d81ff6ab706 100644 --- a/x/concentrated-liquidity/tick_test.go +++ b/x/concentrated-liquidity/tick_test.go @@ -436,7 +436,7 @@ func (s *KeeperTestSuite) TestGetTickInfo() { s.Require().Equal(model.TickInfo{}, tickInfo) } else { s.Require().NoError(err) - _, err = clKeeper.GetPoolById(s.Ctx, validPoolId) + clPool, err = clKeeper.GetPoolById(s.Ctx, validPoolId) s.Require().NoError(err) s.Require().Equal(test.expectedTickInfo, tickInfo) } diff --git a/x/valset-pref/keeper_test.go b/x/valset-pref/keeper_test.go index 97cc9d7d918..2abe4eac33c 100644 --- a/x/valset-pref/keeper_test.go +++ b/x/valset-pref/keeper_test.go @@ -70,8 +70,9 @@ func (suite *KeeperTestSuite) GetDelegationRewards(ctx sdk.Context, valAddrStr s } func (suite *KeeperTestSuite) SetupDelegationReward(delegator sdk.AccAddress, preferences []types.ValidatorPreference, existingValAddrStr string, setValSetDel, setExistingdel bool) { + var ctx sdk.Context // incrementing the blockheight by 1 for reward - ctx := suite.Ctx.WithBlockHeight(suite.Ctx.BlockHeight() + 1) + ctx = suite.Ctx.WithBlockHeight(suite.Ctx.BlockHeight() + 1) if setValSetDel { // only necessary if there are tokens delegated