Skip to content

Commit

Permalink
fix the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gsk967 committed Sep 27, 2023
1 parent a494625 commit 674b917
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x/leverage/simulation/operations_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package simulation_test
import (
"math/rand"
"testing"
"time"

sdk "github.com/cosmos/cosmos-sdk/types"
simtypes "github.com/cosmos/cosmos-sdk/types/simulation"
Expand Down Expand Up @@ -32,8 +33,7 @@ type SimTestSuite struct {
func (s *SimTestSuite) SetupTest() {
checkTx := false
app := umeeapp.Setup(s.T())
ctx := app.NewContext(checkTx, tmproto.Header{})

ctx := app.NewContext(checkTx, tmproto.Header{Time: time.Now()})
leverage.InitGenesis(ctx, app.LeverageKeeper, *types.DefaultGenesis())

// Use default umee token for sim tests
Expand Down
2 changes: 2 additions & 0 deletions x/oracle/abci_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package oracle_test
import (
"fmt"
"testing"
"time"

"github.com/cosmos/cosmos-sdk/simapp"
sdk "github.com/cosmos/cosmos-sdk/types"
Expand Down Expand Up @@ -43,6 +44,7 @@ func (s *IntegrationTestSuite) SetupTest() {
app := umeeapp.Setup(s.T())
ctx := app.NewContext(isCheckTx, tmproto.Header{
ChainID: fmt.Sprintf("test-chain-%s", tmrand.Str(4)),
Time: time.Now(),
})

oracle.InitGenesis(ctx, app.OracleKeeper, *types.DefaultGenesisState())
Expand Down
3 changes: 3 additions & 0 deletions x/oracle/client/tests/cli_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//go:build norace
// +build norace

package tests

import (
Expand Down

0 comments on commit 674b917

Please sign in to comment.