Add comments

This commit is contained in:
Adria Navarro 2023-11-30 18:37:34 +01:00
parent 670853a0ea
commit 12015c79ae
1 changed files with 1 additions and 0 deletions

View File

@ -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)