Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanchriswhite committed Nov 19, 2024
1 parent 5eaf4ca commit e3670de
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions x/tokenomics/keeper/token_logic_modules_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"math"
"testing"

cosmoslog "cosmossdk.io/log"
cosmosmath "cosmossdk.io/math"
cosmostypes "github.com/cosmos/cosmos-sdk/types"
sdk "github.com/cosmos/cosmos-sdk/types"
Expand Down Expand Up @@ -51,7 +52,11 @@ func TestProcessTokenLogicModules_TLMBurnEqualsMint_Valid(t *testing.T) {
numRelays := uint64(1000) // By supplier for application in this session

// Prepare the keepers
keepers, ctx := testkeeper.NewTokenomicsModuleKeepers(t, nil, testkeeper.WithService(*service))
keepers, ctx := testkeeper.NewTokenomicsModuleKeepers(t,
cosmoslog.NewNopLogger(),
testkeeper.WithService(*service),
testkeeper.WithDefaultModuleBalances(),
)
keepers.SetService(ctx, *service)

// Ensure the claim is within relay mining bounds
Expand Down Expand Up @@ -184,7 +189,11 @@ func TestProcessTokenLogicModules_TLMBurnEqualsMint_Valid_SupplierExceedsMaxClai
supplierRevShareRatios := []float32{12.5, 37.5, 50}

// Prepare the keepers
keepers, ctx := testkeeper.NewTokenomicsModuleKeepers(t, nil, testkeeper.WithService(*service))
keepers, ctx := testkeeper.NewTokenomicsModuleKeepers(t,
cosmoslog.NewNopLogger(),
testkeeper.WithService(*service),
testkeeper.WithDefaultModuleBalances(),
)
keepers.SetService(ctx, *service)

// Set up the relays to exceed the max claimable amount
Expand Down Expand Up @@ -347,6 +356,7 @@ func TestProcessTokenLogicModules_TLMGlobalMint_Valid_MintDistributionCorrect(t
testkeeper.WithService(*service),
testkeeper.WithProposerAddr(proposerConsAddr),
testkeeper.WithTokenLogicModules(tokenLogicModules),
testkeeper.WithDefaultModuleBalances(),
}
keepers, ctx := testkeeper.NewTokenomicsModuleKeepers(t, nil, opts...)
keepers.SetService(ctx, *service)
Expand Down

0 comments on commit e3670de

Please sign in to comment.