Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
tac0turtle committed Oct 20, 2023
1 parent a7ee77b commit 2a49661
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion x/bank/migrations/v4/gen_state_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,6 @@ func TestMigrateGenState(t *testing.T) {
},
}
_ = v4.MigrateGenState(&origState)
assert.Len(t, origState.Params.SendEnabled, 2) //nolint:staticcheck // SA1019: keep for test
assert.Len(t, origState.Params.SendEnabled, 2)
})
}
2 changes: 1 addition & 1 deletion x/feegrant/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ func (k Keeper) RemoveExpiredAllowances(ctx context.Context, limit int32) error
exp := sdk.UnwrapSDKContext(ctx).BlockTime()
store := k.storeService.OpenKVStore(ctx)
iterator, err := store.Iterator(feegrant.FeeAllowanceQueueKeyPrefix, storetypes.InclusiveEndBytes(feegrant.AllowanceByExpTimeKey(&exp)))
var count int32 = 0
var count int32
if err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion x/feegrant/keeper/msg_server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ func (suite *KeeperTestSuite) TestPruneAllowances() {
count = 0
err := suite.feegrantKeeper.IterateAllFeeAllowances(ctx, func(grant feegrant.Grant) bool {
count++
return true
return count == 76
})
suite.Require().NoError(err)
suite.Require().Equal(76, count)
Expand Down

0 comments on commit 2a49661

Please sign in to comment.