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

Commit 1925392

Browse files
committed
Close db in stack-blower test
Cherry-picked from Level/leveldown#668
1 parent 2c41d3b commit 1925392

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

test/stack-blower.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,12 @@ if (process.argv[2] === 'run') {
2121
try {
2222
recurse()
2323
} catch (e) {
24-
process.send('Catchable error at depth ' + depth)
24+
// Closing before process exit is normally not needed. This is a
25+
// temporary workaround for Level/leveldown#667.
26+
db.close(function (err) {
27+
if (err) throw err
28+
process.send('Catchable error at depth ' + depth)
29+
})
2530
}
2631
})
2732
}

0 commit comments

Comments
 (0)