Skip to content

Commit

Permalink
Remove more print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
Manav-Aggarwal committed Oct 28, 2022
1 parent 5e46f0c commit 9511ba0
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions deepsubtree_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,6 @@ func TestDeepSubtreeWWithAddsAndDeletes(t *testing.T) {
return tree
}
tree := getTree()
fmt.Println("PRINT TREE")
_ = printNode(tree.ndb, tree.root, 0)
fmt.Println("PRINT TREE END")

subsetKeys := [][]byte{
[]byte("b"),
Expand Down Expand Up @@ -167,10 +164,6 @@ func TestDeepSubtreeWWithAddsAndDeletes(t *testing.T) {
}
dst.SaveVersion()

fmt.Println("PRINT DST TREE")
_ = dst.printNodeDeepSubtree(dst.ImmutableTree.root, 0)
fmt.Println("PRINT DST TREE END")

// Check root hashes are equal
require.Equal(dst.root.hash, tree.root.hash)

Expand All @@ -183,14 +176,8 @@ func TestDeepSubtreeWWithAddsAndDeletes(t *testing.T) {
dst.SaveVersion()
err = dst.BuildTree(dst.root.hash)
require.NoError(err)
fmt.Println("PRINT DST TREE")
_ = dst.printNodeDeepSubtree(dst.ImmutableTree.root, 0)
fmt.Println("PRINT DST TREE END")
tree.Set(keyToAdd, valueToAdd)
tree.SaveVersion()
fmt.Println("PRINT TREE")
_ = printNode(tree.ndb, tree.root, 0)
fmt.Println("PRINT TREE END")

// Check root hashes are equal
require.Equal(dst.root.hash, tree.root.hash)
Expand All @@ -203,14 +190,8 @@ func TestDeepSubtreeWWithAddsAndDeletes(t *testing.T) {
dst.SaveVersion()
err = dst.BuildTree(dst.root.hash)
require.NoError(err)
fmt.Println("PRINT DST TREE")
_ = dst.printNodeDeepSubtree(dst.ImmutableTree.root, 0)
fmt.Println("PRINT DST TREE END")
tree.Remove(keyToAdd)
tree.SaveVersion()
fmt.Println("PRINT TREE")
_ = printNode(tree.ndb, tree.root, 0)
fmt.Println("PRINT TREE END")

// Check root hashes are equal
require.Equal(dst.root.hash, tree.root.hash)
Expand Down

0 comments on commit 9511ba0

Please sign in to comment.