Skip to content

Commit

Permalink
more closely follow sdk style
Browse files Browse the repository at this point in the history
  • Loading branch information
faddat committed Jun 18, 2023
1 parent f91d1f1 commit 7070fc0
Show file tree
Hide file tree
Showing 14 changed files with 133 additions and 97 deletions.
2 changes: 1 addition & 1 deletion modules/apps/transfer/simulation/decoder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
)

func TestDecodeStore(t *testing.T) {
app := simapp.Setup(false)
app := simapp.Setup(t, false)
dec := simulation.NewDecodeStore(app.TransferKeeper)

trace := types.DenomTrace{
Expand Down
2 changes: 1 addition & 1 deletion modules/capability/capability_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ type CapabilityTestSuite struct {

func (suite *CapabilityTestSuite) SetupTest() {
checkTx := false
app := simapp.Setup(checkTx)
app := simapp.Setup(suite.T(), checkTx)
cdc := app.AppCodec()

// create new keeper so we can define custom scoping before init and seal
Expand Down
2 changes: 1 addition & 1 deletion modules/capability/simulation/decoder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
)

func TestDecodeStore(t *testing.T) {
app := simapp.Setup(false)
app := simapp.Setup(t, false)
dec := simulation.NewDecodeStore(app.AppCodec())

capOwners := types.CapabilityOwners{
Expand Down
2 changes: 1 addition & 1 deletion modules/core/02-client/keeper/keeper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func (suite *KeeperTestSuite) SetupTest() {
suite.now = time.Date(2020, 1, 2, 0, 0, 0, 0, time.UTC)
suite.past = time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC)
now2 := suite.now.Add(time.Hour)
app := simapp.Setup(isCheckTx)
app := simapp.Setup(suite.T(), isCheckTx)

suite.cdc = app.AppCodec()
suite.ctx = app.BaseApp.NewContext(isCheckTx, tmproto.Header{Height: height, ChainID: testClientID, Time: now2})
Expand Down
2 changes: 1 addition & 1 deletion modules/core/02-client/simulation/decoder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
)

func TestDecodeStore(t *testing.T) {
app := simapp.Setup(false)
app := simapp.Setup(t, false)
clientID := "clientidone"

height := types.NewHeight(0, 10)
Expand Down
2 changes: 1 addition & 1 deletion modules/core/03-connection/simulation/decoder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
)

func TestDecodeStore(t *testing.T) {
app := simapp.Setup(false)
app := simapp.Setup(t, false)
cdc := app.AppCodec()

connectionID := "connectionidone"
Expand Down
2 changes: 1 addition & 1 deletion modules/core/03-connection/types/msgs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func (suite *MsgTestSuite) SetupTest() {
suite.chainA = suite.coordinator.GetChain(ibctesting.GetChainID(1))
suite.chainB = suite.coordinator.GetChain(ibctesting.GetChainID(2))

app := simapp.Setup(false)
app := simapp.Setup(suite.T(), false)
db := dbm.NewMemDB()
dblog := log.TestingLogger()
store := rootmulti.NewStore(db, dblog)
Expand Down
2 changes: 1 addition & 1 deletion modules/core/04-channel/simulation/decoder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
)

func TestDecodeStore(t *testing.T) {
app := simapp.Setup(false)
app := simapp.Setup(t, false)
cdc := app.AppCodec()

channelID := "channelidone"
Expand Down
2 changes: 1 addition & 1 deletion modules/core/04-channel/types/msgs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ type TypesTestSuite struct {
}

func (suite *TypesTestSuite) SetupTest() {
app := simapp.Setup(false)
app := simapp.Setup(suite.T(), false)
db := dbm.NewMemDB()
dblog := log.TestingLogger()
store := rootmulti.NewStore(db, dblog)
Expand Down
2 changes: 1 addition & 1 deletion modules/core/05-port/keeper/keeper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ type KeeperTestSuite struct {

func (suite *KeeperTestSuite) SetupTest() {
isCheckTx := false
app := simapp.Setup(isCheckTx)
app := simapp.Setup(suite.T(), isCheckTx)

suite.ctx = app.BaseApp.NewContext(isCheckTx, tmproto.Header{})
suite.keeper = &app.IBCKeeper.PortKeeper
Expand Down
2 changes: 1 addition & 1 deletion modules/core/genesis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ func (suite *IBCTestSuite) TestInitGenesis() {
}

for _, tc := range testCases {
app := simapp.Setup(false)
app := simapp.Setup(suite.T(), false)

suite.NotPanics(func() {
ibc.InitGenesis(app.BaseApp.NewContext(false, tmproto.Header{Height: 1}), *app.IBCKeeper, tc.genState)
Expand Down
2 changes: 1 addition & 1 deletion modules/core/simulation/decoder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
)

func TestDecodeStore(t *testing.T) {
app := simapp.Setup(false)
app := simapp.Setup(t, false)
dec := simulation.NewDecodeStore(*app.IBCKeeper)

clientID := "clientidone"
Expand Down
2 changes: 1 addition & 1 deletion modules/light-clients/07-tendermint/tendermint_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func (suite *TendermintTestSuite) SetupTest() {

// TODO: deprecate usage in favor of testing package
checkTx := false
app := simapp.Setup(checkTx)
app := simapp.Setup(suite.T(), checkTx)

suite.cdc = app.AppCodec()

Expand Down
Loading

0 comments on commit 7070fc0

Please sign in to comment.