Skip to content

Commit ceea1a7

Browse files
committed
fix(lockfile): ignore lockfile unlink fail
1 parent dd63d8b commit ceea1a7

File tree

1 file changed

+3
-1
lines changed
  • packages/mongodb-memory-server-core/src/util

1 file changed

+3
-1
lines changed

packages/mongodb-memory-server-core/src/util/lockfile.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,9 @@ export class LockFile {
217217
}
218218

219219
if (fileio) {
220-
await fspromises.unlink(this.file);
220+
await fspromises.unlink(this.file).catch((reason) => {
221+
log(`unlockCleanup: lock file unlink failed: "${reason}"`);
222+
});
221223
}
222224

223225
LockFile.files.delete(this.file);

0 commit comments

Comments
 (0)