Skip to content

Commit

Permalink
chore: fix test for simulation
Browse files Browse the repository at this point in the history
  • Loading branch information
JeancarloBarrios committed Jun 26, 2024
1 parent c76d259 commit c561910
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
2 changes: 0 additions & 2 deletions app/simulation/app_determinism_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ func TestAppDeterminism(t *testing.T) {
db,
nil,
true,
map[int64]bool{},
regen.DefaultNodeHome,
simcli.FlagPeriodValue,
simtestutil.EmptyAppOptions{},
interBlockCacheOpt(),
Expand Down
10 changes: 3 additions & 7 deletions app/simulation/app_import_export_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (
slashingtypes "github.com/cosmos/cosmos-sdk/x/slashing/types"
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
ibctransfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types"
ibchost "github.com/cosmos/ibc-go/v7/modules/core/24-host"
ibcexported "github.com/cosmos/ibc-go/v7/modules/core/exported"

regen "github.com/regen-network/regen-ledger/v5/app"
"github.com/regen-network/regen-ledger/x/data/v3"
Expand All @@ -53,8 +53,6 @@ func TestAppImportExport(t *testing.T) {
db,
nil,
true,
map[int64]bool{},
regen.DefaultNodeHome,
simcli.FlagPeriodValue,
simtestutil.EmptyAppOptions{},
fauxMerkleModeOpt,
Expand All @@ -75,7 +73,7 @@ func TestAppImportExport(t *testing.T) {

fmt.Printf("exporting genesis...\n")

exported, err := app.ExportAppStateAndValidators(false, []string{})
exported, err := app.ExportAppStateAndValidators(false, []string{}, []string{})
require.NoError(t, err)

fmt.Printf("importing genesis...\n")
Expand All @@ -93,8 +91,6 @@ func TestAppImportExport(t *testing.T) {
newDB,
nil,
true,
map[int64]bool{},
regen.DefaultNodeHome,
simcli.FlagPeriodValue,
simtestutil.EmptyAppOptions{},
fauxMerkleModeOpt,
Expand Down Expand Up @@ -145,7 +141,7 @@ func TestAppImportExport(t *testing.T) {
}},

// ibc modules
{app.GetKey(ibchost.StoreKey), newApp.GetKey(ibchost.StoreKey), [][]byte{}},
{app.GetKey(ibcexported.StoreKey), newApp.GetKey(ibcexported.StoreKey), [][]byte{}},
{app.GetKey(ibctransfertypes.StoreKey), newApp.GetKey(ibctransfertypes.StoreKey), [][]byte{}},

// regen modules
Expand Down
4 changes: 1 addition & 3 deletions app/simulation/app_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (

func TestApp(t *testing.T) {
config := simcli.NewConfigFromFlags()
db, dir, logger, skip, err := simtestutil.SetupSimulation(config, "app", "simulation".false, true)
db, dir, logger, skip, err := simtestutil.SetupSimulation(config, "app", "simulation", false, true)
if skip {
t.Skip("skipping app simulation")
}
Expand All @@ -31,8 +31,6 @@ func TestApp(t *testing.T) {
db,
nil,
true,
map[int64]bool{},
regen.DefaultNodeHome,
simcli.FlagPeriodValue,
simtestutil.EmptyAppOptions{},
fauxMerkleModeOpt,
Expand Down

0 comments on commit c561910

Please sign in to comment.