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

Commit d0d7a2c

Browse files
authored
Don't assume existence of a LOG file in abstract destroy-test (#87)
1 parent 2429718 commit d0d7a2c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

abstract/destroy-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ module.exports = function (test, level) {
88
test('test destroy', function (t) {
99
t.plan(4)
1010
t.ok(fs.statSync(location).isDirectory(), 'sanity check, directory exists')
11-
t.ok(fs.existsSync(path.join(location, 'LOG')), 'sanity check, log exists')
11+
t.ok(fs.existsSync(path.join(location, 'CURRENT')), 'sanity check, CURRENT exists')
1212
level.destroy(location, function (err) {
1313
t.notOk(err, 'no error')
14-
t.notOk(fs.existsSync(path.join(location, 'LOG')), 'db gone (mostly)')
14+
t.notOk(fs.existsSync(path.join(location, 'CURRENT')), 'db gone (mostly)')
1515
})
1616
})
1717
}

0 commit comments

Comments
 (0)