Skip to content
This repository has been archived by the owner on Dec 1, 2024. It is now read-only.

Commit

Permalink
Close db in stack-blower test
Browse files Browse the repository at this point in the history
Cherry-picked from Level/leveldown#668
  • Loading branch information
vweevers committed Nov 4, 2019
1 parent 2c41d3b commit 1925392
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/stack-blower.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@ if (process.argv[2] === 'run') {
try {
recurse()
} catch (e) {
process.send('Catchable error at depth ' + depth)
// Closing before process exit is normally not needed. This is a
// temporary workaround for Level/leveldown#667.
db.close(function (err) {
if (err) throw err
process.send('Catchable error at depth ' + depth)
})
}
})
}

0 comments on commit 1925392

Please sign in to comment.