From 3bf2198b025290e65e10da89930203afc5dcaa9b Mon Sep 17 00:00:00 2001 From: Vincent Weevers Date: Sat, 8 Jun 2019 14:06:34 +0200 Subject: [PATCH] Don't assume existence of a LOG file in abstract destroy-test --- abstract/destroy-test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/abstract/destroy-test.js b/abstract/destroy-test.js index 2ee2c83..36dc9e7 100644 --- a/abstract/destroy-test.js +++ b/abstract/destroy-test.js @@ -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)') }) }) }