Skip to content

Commit

Permalink
Fix manifest-test to open & close its db (#352)
Browse files Browse the repository at this point in the history
  • Loading branch information
vweevers authored Oct 1, 2019
1 parent 77301e5 commit 3bddfab
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test/manifest-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,13 @@ module.exports = function (test, testCommon) {
test('manifest has status', function (t) {
var db = testCommon.factory()
t.is(db.supports.status, true)
db.close(t.end.bind(t))

// The semantics of not opening or closing a new db are unclear
// atm, so let's open it before closing, like every other test.
db.open(function (err) {
t.ifError(err, 'no open error')
db.close(t.end.bind(t))
})
})

test('tearDown', testCommon.tearDown)
Expand Down

0 comments on commit 3bddfab

Please sign in to comment.