From 12015c79aec963229de50ec31aa4242419a08d10 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Thu, 30 Nov 2023 18:37:34 +0100 Subject: [PATCH] Add comments --- packages/backend-core/src/redis/tests/redlockImpl.spec.ts | 1 + 1 file changed, 1 insertion(+) 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)