Skip to content

Commit

Permalink
Close tree at end of test
Browse files Browse the repository at this point in the history
  • Loading branch information
HDegroote committed May 27, 2024
1 parent 07f43fd commit 17717c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/merkle-tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,8 @@ test('buffer of cached nodes is copied to small slab', async function (t) {

const node = await tree.get(0)
t.is(node.hash.buffer.byteLength, 40, 'created a new memory slab of the correct (small) size')

await tree.close()
})

async function audit (tree) {
Expand Down

0 comments on commit 17717c6

Please sign in to comment.