Skip to content

Commit c9dfe00

Browse files
committed
[fixup] change assertion on empty byte slice
1 parent 6aaff89 commit c9dfe00

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

persistence/trees/module_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func TestTreeStore_Create(t *testing.T) {
5454

5555
// root hash should be empty for empty tree
5656
root, ns := treemod.GetTree(trees.TransactionsTreeName)
57-
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})
57+
require.Equal(t, root, make([]byte, 32))
5858

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

0 commit comments

Comments
 (0)