Skip to content

Commit

Permalink
[fixup] change assertion on empty byte slice
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanlott committed Jul 20, 2023
1 parent 6aaff89 commit c9dfe00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion persistence/trees/module_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func TestTreeStore_Create(t *testing.T) {

// root hash should be empty for empty tree
root, ns := treemod.GetTree(trees.TransactionsTreeName)
require.Equal(t, root, []byte{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0})
require.Equal(t, root, make([]byte, 32))

// nodestore should have no values in it
keys, vals, err := ns.GetAll(nil, false)
Expand Down

0 comments on commit c9dfe00

Please sign in to comment.