Skip to content

Commit

Permalink
test(lockfile): increase timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
hasezoey committed Nov 16, 2023
1 parent b309a18 commit 8ed8719
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ describe('LockFile', () => {
expect(lockFile.LockFile.files.has(lockPath)).toBeTruthy();
// ensure that "lock2" gets executed as far as possible, which still may be inconsistent
await new Promise(async (res) => {
setTimeout(res, 30);
// give some time for the lock promise to work, but return before it finished (because it never will)
setTimeout(res, 100);
await lock2;
});
// @ts-expect-error because "waitForLock" is protected
Expand Down

0 comments on commit 8ed8719

Please sign in to comment.