Skip to content
This repository has been archived by the owner on Oct 24, 2024. It is now read-only.

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
taryune committed Sep 20, 2023
1 parent 57fbbb6 commit 509fca7
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 32 deletions.
9 changes: 0 additions & 9 deletions x/epochs/keeper/setup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,4 @@ func (suite *KeeperTestSuite) SetupTest() {
queryHelper := baseapp.NewQueryServerTestHelper(suite.ctx, suite.app.InterfaceRegistry())
types.RegisterQueryServer(queryHelper, suite.app.EpochsKeeper)
suite.queryClient = types.NewQueryClient(queryHelper)

identifiers := []string{types.IncentiveEpochId}
for _, identifier := range identifiers {
epoch, found := suite.app.EpochsKeeper.GetEpochInfo(suite.ctx, identifier)
suite.Require().True(found)
epoch.StartTime = suite.ctx.BlockTime()
epoch.CurrentEpochStartHeight = suite.ctx.BlockHeight()
suite.app.EpochsKeeper.SetEpochInfo(suite.ctx, epoch)
}
}
11 changes: 0 additions & 11 deletions x/registry/keeper/setup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
"time"

"github.com/mycel-domain/mycel/testutil"
epochstypes "github.com/mycel-domain/mycel/x/epochs/types"

tmproto "github.com/cometbft/cometbft/proto/tendermint/types"
"github.com/cosmos/cosmos-sdk/baseapp"
Expand Down Expand Up @@ -50,16 +49,6 @@ func (suite *KeeperTestSuite) SetupTest() {
// Init bank keeper
suite.app.BankKeeper.InitGenesis(suite.ctx, getBankGenesis())

// Setup epochs
identifiers := []string{epochstypes.IncentiveEpochId}
for _, identifier := range identifiers {
epoch, found := suite.app.EpochsKeeper.GetEpochInfo(suite.ctx, identifier)
suite.Require().True(found)
epoch.StartTime = suite.ctx.BlockTime()
epoch.CurrentEpochStartHeight = suite.ctx.BlockHeight()
suite.app.EpochsKeeper.SetEpochInfo(suite.ctx, epoch)
}

}

func makeBalance(address string, balance int64) banktypes.Balance {
Expand Down
12 changes: 0 additions & 12 deletions x/resolver/keeper/setup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
"time"

"github.com/mycel-domain/mycel/testutil"
epochstypes "github.com/mycel-domain/mycel/x/epochs/types"

tmproto "github.com/cometbft/cometbft/proto/tendermint/types"
"github.com/cosmos/cosmos-sdk/baseapp"
Expand Down Expand Up @@ -49,17 +48,6 @@ func (suite *KeeperTestSuite) SetupTest() {

// Init bank keeper
suite.app.BankKeeper.InitGenesis(suite.ctx, getBankGenesis())

// Setup epochs
identifiers := []string{epochstypes.IncentiveEpochId}
for _, identifier := range identifiers {
epoch, found := suite.app.EpochsKeeper.GetEpochInfo(suite.ctx, identifier)
suite.Require().True(found)
epoch.StartTime = suite.ctx.BlockTime()
epoch.CurrentEpochStartHeight = suite.ctx.BlockHeight()
suite.app.EpochsKeeper.SetEpochInfo(suite.ctx, epoch)
}

}

func makeBalance(address string, balance int64) banktypes.Balance {
Expand Down

0 comments on commit 509fca7

Please sign in to comment.