summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy McCurdy <andy@andymccurdy.com>2019-01-27 10:46:41 -0800
committerAndy McCurdy <andy@andymccurdy.com>2019-01-27 10:46:41 -0800
commitaaf6e6b7157ffd8aca426540b471895ca25d2bf4 (patch)
tree40904509733336631f210946704bc143aec01950
parentbfa2e772566e973f8329ca9754d4ef7fbdbce1b0 (diff)
downloadredis-py-aaf6e6b7157ffd8aca426540b471895ca25d2bf4.tar.gz
Fixes #1116
-rw-r--r--CHANGES3
-rw-r--r--tests/test_commands.py2
2 files changed, 4 insertions, 1 deletions
diff --git a/CHANGES b/CHANGES
index 25af3a3..75ef1dc 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,4 +1,7 @@
* 3.1.0 (in development)
+ * Fixed XREADGROUP to return an empty dictionary for messages that
+ have been deleted but still exist in the unacknowledged queue. Thanks
+ @xeizmendi. #1116
* Added an owned method to Lock objects. owned returns a boolean
indicating whether the current lock instance still owns the lock.
Thanks Dave Johansen. #1112
diff --git a/tests/test_commands.py b/tests/test_commands.py
index 60d1e28..db7f4ad 100644
--- a/tests/test_commands.py
+++ b/tests/test_commands.py
@@ -2213,7 +2213,7 @@ class TestRedisCommands(object):
# now there should be nothing pending
assert len(r.xreadgroup(group, consumer,
streams={stream: '0'})[0][1]) == 0
-
+
r.xgroup_destroy(stream, group)
r.xgroup_create(stream, group, '0')
# delete all the messages in the stream