From aaf6e6b7157ffd8aca426540b471895ca25d2bf4 Mon Sep 17 00:00:00 2001 From: Andy McCurdy Date: Sun, 27 Jan 2019 10:46:41 -0800 Subject: [PATCH] Fixes #1116 --- CHANGES | 3 +++ tests/test_commands.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 25af3a3bb3..75ef1dc26a 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 60d1e2845f..db7f4ad271 100644 --- a/tests/test_commands.py +++ b/tests/test_commands.py @@ -2213,7 +2213,7 @@ def test_xreadgroup(self, r): # 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