Skip to content

Commit 303db1d

Browse files
authored
Merge branch 'testcontainers:main' into main
2 parents cd8d643 + 12caddb commit 303db1d

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/testcontainers/src/common/file-lock.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ export async function withFileLock<T>(fileName: string, fn: () => T): Promise<T>
99
let releaseLockFn;
1010
try {
1111
log.debug(`Acquiring lock file "${file}"...`);
12-
releaseLockFn = await lockFile.lock(file, { retries: { forever: true } });
12+
releaseLockFn = await lockFile.lock(file, {
13+
retries: { forever: true, factor: 1, minTimeout: 500, maxTimeout: 3000, randomize: true },
14+
});
1315
log.debug(`Acquired lock file "${file}"`);
1416
return await fn();
1517
} finally {

0 commit comments

Comments
 (0)