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
Thanks for open sourcing this library. It's very close to what I've been looking for.
In the below test I have the first lock holding for 6 seconds while the second lock only has a 3 second timeout. After six seconds of waiting, the second lock yields and continues on with no error but does not have the lock. This doesn't seem right to me. I would have expected either:
The second lock is held for three seconds after it yields
The second lock throws an error as it was unable to get the lock in the 3 second timeout period
it('timeout waiting for a lock',function*(){yieldclient.lock('node_lock_test_8',6000)yieldclient.lock('node_lock_test_8',3000)letisLocked=yieldclient.isLocked('node_lock_test_8')assert(isLocked===true)})})
Note the following test passes but the second lock is only held for 1 second and not 7 from when it yields.
it('timeout waiting for a lock',function*(){yieldclient.lock('node_lock_test_8',6000)yieldclient.lock('node_lock_test_8',7000)letisLocked=yieldclient.isLocked('node_lock_test_8')assert(isLocked===true)})})
The text was updated successfully, but these errors were encountered:
Thanks for open sourcing this library. It's very close to what I've been looking for.
In the below test I have the first lock holding for 6 seconds while the second lock only has a 3 second timeout. After six seconds of waiting, the second lock yields and continues on with no error but does not have the lock. This doesn't seem right to me. I would have expected either:
Note the following test passes but the second lock is only held for 1 second and not 7 from when it yields.
The text was updated successfully, but these errors were encountered: