Skip to content

Commit

Permalink
fix invariant test
Browse files Browse the repository at this point in the history
  • Loading branch information
lumtis committed May 16, 2022
1 parent 15fc693 commit bb43e03
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion x/campaign/keeper/invariants_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,10 @@ func TestCampaignSharesInvariant(t *testing.T) {
t.Run("campaign with special allocations not tracked by allocated shares", func(t *testing.T) {
ctx, tk, _ := testkeeper.NewTestSetup(t)
campaign := sample.Campaign(r, 3)
campaign.SpecialAllocations = sample.SpecialAllocations(r)
campaign.SpecialAllocations.GenesisDistribution = types.IncreaseShares(
campaign.SpecialAllocations.GenesisDistribution,
sample.Shares(r),
)
tk.CampaignKeeper.SetCampaign(ctx, campaign)

msg, broken := keeper.CampaignSharesInvariant(*tk.CampaignKeeper)(ctx)
Expand Down

0 comments on commit bb43e03

Please sign in to comment.