Skip to content

Commit 8ed8719

Browse files
committed
test(lockfile): increase timeout
1 parent b309a18 commit 8ed8719

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ describe('LockFile', () => {
6464
expect(lockFile.LockFile.files.has(lockPath)).toBeTruthy();
6565
// ensure that "lock2" gets executed as far as possible, which still may be inconsistent
6666
await new Promise(async (res) => {
67-
setTimeout(res, 30);
67+
// give some time for the lock promise to work, but return before it finished (because it never will)
68+
setTimeout(res, 100);
6869
await lock2;
6970
});
7071
// @ts-expect-error because "waitForLock" is protected

0 commit comments

Comments
 (0)