From d1de66b6cf9898f31b56b8827a3002753c5b24fd Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Mon, 16 Feb 2026 02:09:22 +0000 Subject: [PATCH] perf: speed up gateway lock tests --- src/infra/gateway-lock.test.ts | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/infra/gateway-lock.test.ts b/src/infra/gateway-lock.test.ts index d3afd3bb5bc..fd83ef5eab3 100644 --- a/src/infra/gateway-lock.test.ts +++ b/src/infra/gateway-lock.test.ts @@ -90,16 +90,16 @@ describe("gateway lock", () => { const lock = await acquireGatewayLock({ env, allowInTests: true, - timeoutMs: 100, - pollIntervalMs: 5, + timeoutMs: 50, + pollIntervalMs: 2, }); expect(lock).not.toBeNull(); const pending = acquireGatewayLock({ env, allowInTests: true, - timeoutMs: 100, - pollIntervalMs: 5, + timeoutMs: 15, + pollIntervalMs: 2, }); await expect(pending).rejects.toBeInstanceOf(GatewayLockError); @@ -107,8 +107,8 @@ describe("gateway lock", () => { const lock2 = await acquireGatewayLock({ env, allowInTests: true, - timeoutMs: 100, - pollIntervalMs: 5, + timeoutMs: 30, + pollIntervalMs: 2, }); await lock2?.release(); await cleanup(); @@ -173,8 +173,8 @@ describe("gateway lock", () => { const pending = acquireGatewayLock({ env, allowInTests: true, - timeoutMs: 50, - pollIntervalMs: 5, + timeoutMs: 15, + pollIntervalMs: 2, staleMs: 10_000, platform: "linux", }); @@ -198,8 +198,8 @@ describe("gateway lock", () => { const lock = await acquireGatewayLock({ env, allowInTests: true, - timeoutMs: 80, - pollIntervalMs: 5, + timeoutMs: 30, + pollIntervalMs: 2, staleMs: 1, platform: "linux", });