Skip to content

Commit

Permalink
Close db in stack-blower test (#667) (#668)
Browse files Browse the repository at this point in the history
  • Loading branch information
vweevers authored Sep 20, 2019
1 parent 9e5f6da commit f687291
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 f687291

Please sign in to comment.