Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: defineCommand should be sync #987

Merged

Conversation

KashiMoonactive
Copy link
Contributor

As in the official ioredis implementation, the defineCommand is a sync command and can be called when the client is not connected yet to redis.
The current implementation in ioredis-mock is that the command is async (returns a promise), which is wrong.

defineCommand in ioredis

@codeclimate
Copy link

codeclimate bot commented Sep 29, 2020

Code Climate has analyzed commit 4fc134d and detected 1 issue on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 1

The test coverage on the diff in this pull request is 100.0% (80% is the threshold).

This pull request will bring the total coverage in the repository to 98.5% (0.0% change).

View more on Code Climate.

@stipsan stipsan merged commit 668363f into stipsan:master Oct 2, 2020
@stipsan
Copy link
Owner

stipsan commented Oct 2, 2020

🎉 This PR is included in version 4.21.8 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants