From 82002b28030ed9d8b5bd2abcc2f79631d932b9ec Mon Sep 17 00:00:00 2001 From: Andrey Lushnikov Date: Tue, 16 Nov 2021 13:49:01 -0800 Subject: [PATCH] fix: fix proper-lock-file configuration (#10356) Turns out we were using wrong formula; with the config we had in place, proper-lock-file would give up to aquire lock after 49 seconds of waiting. With the proper configuration, we'll keep re-trying for 10 minutes. Fixes #10354 --- packages/playwright-core/src/utils/registry.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/playwright-core/src/utils/registry.ts b/packages/playwright-core/src/utils/registry.ts index 8db93542e0..453e89d83c 100644 --- a/packages/playwright-core/src/utils/registry.ts +++ b/packages/playwright-core/src/utils/registry.ts @@ -550,10 +550,10 @@ export class Registry { try { releaseLock = await lockfile.lock(registryDirectory, { retries: { - retries: 10, // Retry 20 times during 10 minutes with // exponential back-off. // See documentation at: https://www.npmjs.com/package/retry#retrytimeoutsoptions + retries: 20, factor: 1.27579, }, onCompromised: (err: Error) => {