From 5be578188c5540047afa634c10816e53a46d78fd Mon Sep 17 00:00:00 2001 From: Marko Baricevic Date: Thu, 29 Aug 2024 11:26:49 +0200 Subject: [PATCH] fix capability tests --- modules/capability/keeper/keeper_test.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/capability/keeper/keeper_test.go b/modules/capability/keeper/keeper_test.go index 0b097c1c42b..f5f1a896e41 100644 --- a/modules/capability/keeper/keeper_test.go +++ b/modules/capability/keeper/keeper_test.go @@ -33,8 +33,12 @@ type KeeperTestSuite struct { func (suite *KeeperTestSuite) SetupTest() { key := storetypes.NewKVStoreKey(types.StoreKey) memKey := storetypes.NewMemoryStoreKey(types.MemStoreKey) - testCtx := testutil.DefaultContextWithDB(suite.T(), key, storetypes.NewTransientStoreKey("transient_test")) - suite.ctx = testCtx.Ctx + testCtx := testutil.DefaultContextWithKeys( + map[string]*storetypes.KVStoreKey{key.Name(): key}, + map[string]*storetypes.TransientStoreKey{}, + map[string]*storetypes.MemoryStoreKey{memKey.Name(): memKey}, + ) + suite.ctx = testCtx encCfg := moduletestutil.MakeTestEncodingConfig(capability.AppModule{}) suite.keeper = keeper.NewKeeper(encCfg.Codec, runtime.NewKVStoreService(key), runtime.NewMemStoreService(memKey)) }