-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
feat: add cluster.duplicate() method #926
Conversation
LGTM. The test should be executed since |
Wow, that's a quick response! Unfortunately
|
I see. There are some issues related to type which will be fixed in the next major version. Just pushed a temp fix. Please merge the latest commit and try again. |
I've rebased on top of the latest commit and fixed the code formatting issues. The build is passing but I still don't see the new test. It should be under a |
It seems that mocha ignores tests that contain TypeScript errors, which is the reason the newly added test wasn't executed, as well as some other tests. Didn't notice this issue before. |
@SGrondin Just did some fixes for the issues. Merge the latest commits will do the trick. |
Very nice. It ran 55 tests that were previously ignored. |
# [4.12.0](v4.11.2...v4.12.0) (2019-07-14) ### Features * **cluster:** add #duplicate() method ([#926](#926)) ([8b150c2](8b150c2))
🎉 This PR is included in version 4.12.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
# [4.12.0](redis/ioredis@v4.11.2...v4.12.0) (2019-07-14) ### Features * **cluster:** add #duplicate() method ([#926](redis/ioredis#926)) ([8b150c2](redis/ioredis@8b150c2))
Hi,
See #921. This PR adds the missing
cluster.duplicate()
method.Notes:
this.startupNodes.slice(0)
to ensure we pass a copy and not a reference. This matches the behavior of the options, which also get a copy thanks toObject.assign()
.npm test
. I don't see it in the mocha output. It works as expected when I runnpx mocha test/functional/cluster/duplicate.ts
, could someone please validate?