You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Occasionally the lock expiry works, but most of the time it doesn't.
This test fails 90% of the time.
it("won't lock twice", async () => {
const lockKeyD = `TEST_LOCK_KEY_D`;
const startTime = Date.now();
const lock = await redlock.acquire([lockKeyD], 1000);
// Blocks until the lock expires (90% of the time this just blocks until the test times out after 10 seconds!)
const lockC = await redlock.acquire([lockKeyD], 1);
const duration = Date.now() - startTime;
expect(duration).toBeGreaterThanOrEqual(1000);
await lockC!.release();
}, 10000);
```
The text was updated successfully, but these errors were encountered:
Occasionally the lock expiry works, but most of the time it doesn't.
This test fails 90% of the time.
The text was updated successfully, but these errors were encountered: