Closed PraveenKumarMahto closed 5 years ago
Totals | |
---|---|
Change from base Build 17: | 0.04% |
Covered Lines: | 482 |
Relevant Lines: | 510 |
Mind adding a test for this? Specifically to check that XLock succeeds when exclusive.acquired=true and exclusive.expiresAt <= currentTime?
Mind adding a test for this? Specifically to check that XLock succeeds when exclusive.acquired=true and exclusive.expiresAt <= currentTime?
Added TestCase for the same.
Thank you!
By the way, you can run the Purger on a regular interval to clean up expired locks.
Exclusive lock should check expiresAt in case of TTL is expired.