use unlink instead of rm for node 12

pull/27/head
Timothée Rebours 3 years ago
parent ba0ee21c03
commit 3ec81d3f32
  1. 2
      test/persistence.async.test.js

@ -1037,7 +1037,7 @@ describe('permissions', function () {
beforeEach('cleanup', async () => { beforeEach('cleanup', async () => {
try { try {
await fs.chmod(path.dirname(testDb), 0o755) 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 })) await fs.rmdir(path.dirname(testDb, { recursive: true }))
} catch (err) { } catch (err) {
if (err.code !== 'ENOENT') throw err if (err.code !== 'ENOENT') throw err

Loading…
Cancel
Save