cosmos-sdk/tests/e2e/upgrade/cli_test.go
likhita-809 ff3803fdc6
refactor(upgrade): CLI tests using Tendermint Mock (#13170)
* wip

* add cli tests

Co-authored-by: Marko <marbar3778@yahoo.com>
2022-09-07 15:27:12 +00:00

28 lines
681 B
Go

//go:build e2e
// +build e2e
package upgrade
import (
"testing"
"github.com/stretchr/testify/suite"
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"
"github.com/cosmos/cosmos-sdk/simapp"
"github.com/cosmos/cosmos-sdk/testutil/network"
)
func TestIntegrationTestSuite(t *testing.T) {
cfg := network.DefaultConfig(simapp.NewTestNetworkFixture)
cfg.NumValidators = 1
app := simapp.Setup(t, false)
ctx := app.BaseApp.NewContext(false, tmproto.Header{})
app.UpgradeKeeper.SetVersionSetter(app.BaseApp)
app.UpgradeKeeper.SetModuleVersionMap(ctx, app.ModuleManager.GetVersionMap())
suite.Run(t, NewIntegrationTestSuite(cfg, app.UpgradeKeeper, ctx))
}