From c5619106d4fb36616010e5e67d9beb195b9467cd Mon Sep 17 00:00:00 2001 From: Jeancarlo Date: Tue, 25 Jun 2024 22:17:14 -0600 Subject: [PATCH] chore: fix test for simulation --- app/simulation/app_determinism_test.go | 2 -- app/simulation/app_import_export_test.go | 10 +++------- app/simulation/app_test.go | 4 +--- 3 files changed, 4 insertions(+), 12 deletions(-) diff --git a/app/simulation/app_determinism_test.go b/app/simulation/app_determinism_test.go index 4e2939a8d0..6b08726115 100644 --- a/app/simulation/app_determinism_test.go +++ b/app/simulation/app_determinism_test.go @@ -51,8 +51,6 @@ func TestAppDeterminism(t *testing.T) { db, nil, true, - map[int64]bool{}, - regen.DefaultNodeHome, simcli.FlagPeriodValue, simtestutil.EmptyAppOptions{}, interBlockCacheOpt(), diff --git a/app/simulation/app_import_export_test.go b/app/simulation/app_import_export_test.go index eee14a1735..9c2820503b 100644 --- a/app/simulation/app_import_export_test.go +++ b/app/simulation/app_import_export_test.go @@ -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" @@ -53,8 +53,6 @@ func TestAppImportExport(t *testing.T) { db, nil, true, - map[int64]bool{}, - regen.DefaultNodeHome, simcli.FlagPeriodValue, simtestutil.EmptyAppOptions{}, fauxMerkleModeOpt, @@ -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") @@ -93,8 +91,6 @@ func TestAppImportExport(t *testing.T) { newDB, nil, true, - map[int64]bool{}, - regen.DefaultNodeHome, simcli.FlagPeriodValue, simtestutil.EmptyAppOptions{}, fauxMerkleModeOpt, @@ -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 diff --git a/app/simulation/app_test.go b/app/simulation/app_test.go index f7b6385fc9..a0725a9d96 100644 --- a/app/simulation/app_test.go +++ b/app/simulation/app_test.go @@ -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") } @@ -31,8 +31,6 @@ func TestApp(t *testing.T) { db, nil, true, - map[int64]bool{}, - regen.DefaultNodeHome, simcli.FlagPeriodValue, simtestutil.EmptyAppOptions{}, fauxMerkleModeOpt,