-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Add asynchronous test for pubsub using RESP3 #1012
Conversation
Thanks, @bjosv I will go through this and get it merged this week. |
By providing the (p)unsubscribe message via the subscribe callback, instead of via the push callback, we get the same behavior in RESP3 as in RESP2.
The testcase will subscribe to a channel, and via a second client a message is published to the channel. After receiving the message the testcase will unsubscribe and disconnect. This RESP3 testcase reuses the subscribe callback from the RESP2 testcase to make sure we have a common behavior.
9b6d1c8
to
2ca4b7f
Compare
Now rebased and updated to match the existing asynchronous testing on master. |
@michael-grunder Do you think handling the |
@michael-grunder Why 2.0.0 and not just 1.1.0? Are there any backwards-incompatible changes needed to remove the sds hack? There are as well differences in dict between Redis and Hiredis and probably more changes to come in Redis. |
@zuiderkwast We may be able to get away with It's been a while since I looked at that branch though, we may be able to For |
This PR adds a testcase for pubsub using RESP3 and reuses the subscribe callback from the RESP2 testcase,
all to make sure we have a common behavior.
This requires a correction for
unsubscribe
responses which previously was given to the push callback.Fixes #967