Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
yihuang committed Apr 5, 2024
1 parent d4f38fd commit 3c72422
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions store/cachemulti/store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func TestRunAtomic(t *testing.T) {
keys["obj"]: objStore.CacheWrap(),
}}

s := Store{stores: map[types.StoreKey]types.CacheWrap{}, parentStore: parent.getCacheWrap}
s := Store{stores: map[types.StoreKey]types.CacheWrap{}, parentStore: parent.getCacheWrapper}
s.RunAtomic(func(ms types.CacheMultiStore) error {
ms.GetKVStore(keys["abc"]).Set([]byte("key"), []byte("value"))
ms.GetObjKVStore(keys["obj"]).Set([]byte("key"), "value")
Expand Down Expand Up @@ -77,7 +77,7 @@ func TestBranchStore(t *testing.T) {
keys["obj"]: objStore.CacheWrap(),
}}

s := Store{stores: map[types.StoreKey]types.CacheWrap{}, parentStore: parent.getCacheWrap}
s := Store{stores: map[types.StoreKey]types.CacheWrap{}, parentStore: parent.getCacheWrapper}
s.GetKVStore(keys["abc"]).Set([]byte("key"), []byte("value"))
snapshot := s.Clone()
s.GetKVStore(keys["abc"]).Set([]byte("key"), []byte("value2"))
Expand Down

0 comments on commit 3c72422

Please sign in to comment.