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

Don't assume existence of a LOG file in abstract destroy-test #87

Merged
merged 1 commit into from
Jun 8, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions abstract/destroy-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ module.exports = function (test, level) {
test('test destroy', function (t) {
t.plan(4)
t.ok(fs.statSync(location).isDirectory(), 'sanity check, directory exists')
t.ok(fs.existsSync(path.join(location, 'LOG')), 'sanity check, log exists')
t.ok(fs.existsSync(path.join(location, 'CURRENT')), 'sanity check, CURRENT exists')
level.destroy(location, function (err) {
t.notOk(err, 'no error')
t.notOk(fs.existsSync(path.join(location, 'LOG')), 'db gone (mostly)')
t.notOk(fs.existsSync(path.join(location, 'CURRENT')), 'db gone (mostly)')
})
})
}