Skip to content

Commit

Permalink
test(vstorage): Restore an edge-case vstorageHandler.Receive assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
gibson042 committed Apr 25, 2023
1 parent b47281c commit 4f1589c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions golang/cosmos/x/vstorage/vstorage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,14 +255,13 @@ func TestSetWithoutNotify(t *testing.T) {

// TODO: TestChildrenAndSize

// TODO: TestValues

func TestEntries(t *testing.T) {
kit := makeTestKit()
keeper, handler, ctx, cctx := kit.keeper, kit.handler, kit.ctx, kit.cctx

keeper.SetStorage(ctx, types.NewStorageEntry("key1", "value1"))
keeper.SetStorage(ctx, types.NewStorageEntry("key1.child1.grandchild1", "value1grandchild"))
keeper.SetStorage(ctx, types.NewStorageEntryWithNoData("key1.child1.grandchild2"))
keeper.SetStorage(ctx, types.NewStorageEntryWithNoData("key1.child1"))
keeper.SetStorage(ctx, types.NewStorageEntry("key1.child1.empty-non-terminal.leaf", ""))
keeper.SetStorage(ctx, types.NewStorageEntryWithNoData("key2"))
Expand Down

0 comments on commit 4f1589c

Please sign in to comment.