diff --git a/packages/backend-core/src/redis/tests/redlockImpl.spec.ts b/packages/backend-core/src/redis/tests/redlockImpl.spec.ts index 70920366ee..a1e83d8e6c 100644 --- a/packages/backend-core/src/redis/tests/redlockImpl.spec.ts +++ b/packages/backend-core/src/redis/tests/redlockImpl.spec.ts @@ -22,6 +22,7 @@ describe("redlockImpl", () => { }) { return config.doInTenant(() => doWithLock(opts, async () => { + // Run in multiple intervals until hitting the expected time const interval = lockTtl / 10 for (let i = executionTimeMs; i > 0; i -= interval) { await jest.advanceTimersByTimeAsync(interval)