Skip to content

Commit

Permalink
Update mutable_tree_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
mmsqe authored Nov 26, 2024
1 parent 97172e3 commit 1bb263a
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions mutable_tree_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1477,27 +1477,3 @@ func TestReferenceRootPruning(t *testing.T) {
_, err = tree.Set([]byte("foo"), []byte("bar*"))
require.NoError(t, err)
}

func TestReferenceRootPruning(t *testing.T) {
memDB := dbm.NewMemDB()
tree := NewMutableTree(memDB, 0, true, NewNopLogger())

_, err := tree.Set([]byte("foo"), []byte("bar"))
require.NoError(t, err)
_, _, err = tree.SaveVersion()
require.NoError(t, err)

_, _, err = tree.SaveVersion()
require.NoError(t, err)

_, err = tree.Set([]byte("foo1"), []byte("bar"))
require.NoError(t, err)
_, _, err = tree.SaveVersion()
require.NoError(t, err)

err = tree.DeleteVersionsTo(1)
require.NoError(t, err)

_, err = tree.Set([]byte("foo"), []byte("bar*"))
require.NoError(t, err)
}

0 comments on commit 1bb263a

Please sign in to comment.