|
|
@ -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 |
|
|
|