Skip to content

Commit

Permalink
test: fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
snobbee committed Jun 13, 2024
1 parent 03a5ae9 commit 200a8f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x/clp/keeper/provider_distribution_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func TestKeeper_CollectProviderDistributionAndEvents(t *testing.T) {
rowanToDistribute2 := keeper.CollectProviderDistribution(ctx, &pool2, poolDepthRowan, blockRate, sdk.NewUint(totalPoolUnits), lpsFiltered, lpRowanMap, lpPoolMap)
poolRowanMap[&pool2] = rowanToDistribute2

app.ClpKeeper.TransferProviderDistribution(ctx, poolRowanMap, lpRowanMap, lpPoolMap)
app.ClpKeeper.TransferProviderDistribution(ctx, poolRowanMap, lpRowanMap, lpPoolMap, false)

// pool empty after all LPs got paid
poolStored, _ := app.ClpKeeper.GetPool(ctx, assetStr)
Expand All @@ -120,7 +120,7 @@ func TestKeeper_CollectProviderDistributionAndEvents(t *testing.T) {
require.Subset(t, ctx.EventManager().Events(), createDistributeEvent(lps[len(lps)-1].LiquidityProviderAddress))
}

//nolint
// nolint
func createDistributeEvent(address string) []sdk.Event {
return []sdk.Event{sdk.NewEvent("lppd/distribution",
sdk.NewAttribute("recipient", address),
Expand Down

0 comments on commit 200a8f7

Please sign in to comment.