Add comments
This commit is contained in:
parent
670853a0ea
commit
12015c79ae
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue