Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(test): Fixed improper mocking of ioredis resources in unit tests (#…
…11) * Updated Redlock to accept db configuration option to specify redis db index which to use for single-instance configurations with cluster mode disabled * Updated README.md to correct Redis references statements for ioredis, and added details for configuring redlock to use a specific DB index for single instance with cluster mode disabled * Updated tests, created unit tests in unit.spec.ts and renamed index.spec.ts to system.spec.ts to distinguish unit from system tests. Updated package.json accordingly. Added system tests to cover use cases for configuring a specific DB number. Added unit test coverage for Redlock settings and acquire, extend, and release methods. * Updated yarn.lock to resolve high severity dependency vulnerability * Resolved mistake mocking ioredis resources which lead to unit tests attempting to connect to a redis host when instantiating an object of the Redis class
- Loading branch information