node-proper-lockfile
node-proper-lockfile copied to clipboard
feat: cache precision per device
See #103
Quick and untested implementation.
It looks good so far however one test is failing, can you check it out?
We are missing tests as well before merging.
@satazor AFAU, the problem comes from the test expecting a specific number of calls to stat: https://github.com/moxystudio/node-proper-lockfile/blob/9f8c303c91998e8404a911dc11c54029812bca69/test/lock.test.js#L193
But the new algorithm, introduce an extra to get the device.
Yes we need to update existing tests and generate new ones to test the new code (different devices).