1
0
Fork 0
mirror of synced 2024-10-02 18:16:29 +13:00

Add comments

This commit is contained in:
Adria Navarro 2023-11-30 18:37:34 +01:00
parent 670853a0ea
commit 12015c79ae

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)