From 3ec81d3f32e7e7d1ebcb6429011763f6b7d1b6a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Rebours?= Date: Mon, 14 Mar 2022 21:06:31 +0100 Subject: [PATCH] use unlink instead of rm for node 12 --- test/persistence.async.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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