28 lines
647 B
Go
28 lines
647 B
Go
//go:build e2e
|
|
// +build e2e
|
|
|
|
package upgrade
|
|
|
|
import (
|
|
"testing"
|
|
|
|
cmtproto "github.com/cometbft/cometbft/proto/tendermint/types"
|
|
"github.com/stretchr/testify/suite"
|
|
|
|
"cosmossdk.io/simapp"
|
|
"github.com/cosmos/cosmos-sdk/testutil/network"
|
|
)
|
|
|
|
func TestE2ETestSuite(t *testing.T) {
|
|
cfg := network.DefaultConfig(simapp.NewTestNetworkFixture)
|
|
cfg.NumValidators = 1
|
|
|
|
app := simapp.Setup(t, false)
|
|
ctx := app.BaseApp.NewContext(false, cmtproto.Header{})
|
|
|
|
app.UpgradeKeeper.SetVersionSetter(app.BaseApp)
|
|
app.UpgradeKeeper.SetModuleVersionMap(ctx, app.ModuleManager.GetVersionMap())
|
|
|
|
suite.Run(t, NewE2ETestSuite(cfg, app.UpgradeKeeper, ctx))
|
|
}
|