Skip to content

Commit

Permalink
fix benchmarks with updated endblocker
Browse files Browse the repository at this point in the history
  • Loading branch information
javiersuweijie committed Nov 16, 2022
1 parent cb8a4e7 commit d544985
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions x/alliance/benchmark/benchmark_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,16 +93,17 @@ func TestRunBenchmarks(t *testing.T) {
}

// Endblock
assets := app.AllianceKeeper.GetAllAssets(ctx)
app.AllianceKeeper.CompleteRedelegations(ctx)
err = app.AllianceKeeper.CompleteUndelegations(ctx)
if err != nil {
panic(err)
}
_, err = app.AllianceKeeper.DeductAssetsHook(ctx)
_, err = app.AllianceKeeper.DeductAssetsHook(ctx, assets)
if err != nil {
panic(err)
}
err = app.AllianceKeeper.RebalanceHook(ctx)
err = app.AllianceKeeper.RebalanceHook(ctx, assets)
if err != nil {
panic(err)
}
Expand Down

0 comments on commit d544985

Please sign in to comment.