Skip to content

Commit

Permalink
fix capability tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tac0turtle committed Aug 29, 2024
1 parent f72aa4c commit 5be5781
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions modules/capability/keeper/keeper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
Expand Down

0 comments on commit 5be5781

Please sign in to comment.