We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b309a18 commit 8ed8719Copy full SHA for 8ed8719
packages/mongodb-memory-server-core/src/util/__tests__/lockfile.test.ts
@@ -64,7 +64,8 @@ describe('LockFile', () => {
64
expect(lockFile.LockFile.files.has(lockPath)).toBeTruthy();
65
// ensure that "lock2" gets executed as far as possible, which still may be inconsistent
66
await new Promise(async (res) => {
67
- setTimeout(res, 30);
+ // give some time for the lock promise to work, but return before it finished (because it never will)
68
+ setTimeout(res, 100);
69
await lock2;
70
});
71
// @ts-expect-error because "waitForLock" is protected
0 commit comments