-
Notifications
You must be signed in to change notification settings - Fork 336
Conversation
aioredis/connection.py
Outdated
@@ -39,6 +39,7 @@ | |||
'PSUBSCRIBE', b'PSUBSCRIBE', | |||
'UNSUBSCRIBE', b'UNSUBSCRIBE', | |||
'PUNSUBSCRIBE', b'PUNSUBSCRIBE', | |||
'PING', b'PING', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Try removing ping
from _PUBSUB_COMMANDS
, that is the reason why pool tests are failing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will fail then though:
is_pubsub = command in _PUBSUB_COMMANDS
if self._in_pubsub and not is_pubsub:
> raise RedisError("Connection in SUBSCRIBE mode")
E aioredis.errors.RedisError: Connection in SUBSCRIBE mode
aioredis/connection.py:274: RedisError
Any other suggestions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it will fail.
You can extend condition of that if
to something like:
if self._in_pubsub and not (is_pubsub or is_ping):
...
Codecov Report
@@ Coverage Diff @@
## master #264 +/- ##
=========================================
+ Coverage 96.88% 96.9% +0.01%
=========================================
Files 57 57
Lines 7450 7463 +13
Branches 587 589 +2
=========================================
+ Hits 7218 7232 +14
+ Misses 172 171 -1
Partials 60 60
Continue to review full report at Codecov.
|
Just pushed some fixes. I also wanted to get your opinion on the return value of |
@popravich could you please take another look at this PR? Thanks! |
Thanks, |
Fixes #249