diff --git a/x/leverage/simulation/operations_test.go b/x/leverage/simulation/operations_test.go index 51990e4931..dd7d631f92 100644 --- a/x/leverage/simulation/operations_test.go +++ b/x/leverage/simulation/operations_test.go @@ -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" @@ -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 diff --git a/x/oracle/abci_test.go b/x/oracle/abci_test.go index bf23b572a7..ca9e98dbfe 100644 --- a/x/oracle/abci_test.go +++ b/x/oracle/abci_test.go @@ -3,6 +3,7 @@ package oracle_test import ( "fmt" "testing" + "time" "github.com/cosmos/cosmos-sdk/simapp" sdk "github.com/cosmos/cosmos-sdk/types" @@ -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()) diff --git a/x/oracle/client/tests/cli_test.go b/x/oracle/client/tests/cli_test.go index 310d8927fb..e37c9722fa 100644 --- a/x/oracle/client/tests/cli_test.go +++ b/x/oracle/client/tests/cli_test.go @@ -1,3 +1,6 @@ +//go:build norace +// +build norace + package tests import (