diff --git a/test/persistence.async.test.js b/test/persistence.async.test.js index dc709d3..4a6987f 100755 --- a/test/persistence.async.test.js +++ b/test/persistence.async.test.js @@ -1037,7 +1037,7 @@ describe('permissions', function () { beforeEach('cleanup', async () => { try { await fs.chmod(path.dirname(testDb), 0o755) - await fs.rm(testDb, { force: true }) + await fs.unlink(testDb) await fs.rmdir(path.dirname(testDb, { recursive: true })) } catch (err) { if (err.code !== 'ENOENT') throw err