Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
p0mvn committed Jun 8, 2023
1 parent 5b6a19c commit df80f1c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions x/incentives/keeper/distribute_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,11 +223,12 @@ func (s *KeeperTestSuite) TestDistribute_InternalIncentives_ConcentratedPool() {
expectedDistributions: sdk.NewCoins(fiveKRewardCoins),
expectErr: false,
},
"invalid case: attempt to createIncentiveRecord with start time < currentBlockTime": {
numPools: 1,
gaugeCoins: sdk.NewCoins(sdk.NewCoin(defaultRewardDenom, sdk.NewInt(5000))),
gaugeStartTime: defaultGaugeStartTime.Add(-5 * time.Hour),
expectErr: true,
"valid case: attempt to createIncentiveRecord with start time < currentBlockTime - gets set to block time in incentive record": {
numPools: 1,
gaugeStartTime: defaultGaugeStartTime.Add(-5 * time.Hour),
gaugeCoins: sdk.NewCoins(fiveKRewardCoins),
expectedDistributions: sdk.NewCoins(fiveKRewardCoins),
expectErr: false,
},
}

Expand Down

0 comments on commit df80f1c

Please sign in to comment.