Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
ValarDragon committed Mar 13, 2024
1 parent 811f31b commit 62b70ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/concentrated-liquidity/tick_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -674,12 +674,12 @@ func (s *KeeperTestSuite) TestCrossTick() {

// System under test
err = s.App.ConcentratedLiquidityKeeper.CrossTick(s.Ctx, test.poolToGet, test.tickToGet, nextTickInfo, test.additiveSpreadFactor, spreadRewardAccum.GetValue(), uptimeAccums)
liquidityDelta := nextTickInfo.LiquidityNet
if test.expectedErr != nil {
s.Require().Error(err)
s.Require().ErrorAs(err, &test.expectedErr)
} else {
s.Require().NoError(err)
liquidityDelta := nextTickInfo.LiquidityNet
s.Require().Equal(test.expectedLiquidityDelta, liquidityDelta)

// now check if spread factor accumulator has been properly updated
Expand Down

0 comments on commit 62b70ac

Please sign in to comment.