Skip to content

Commit 05a701f

Browse files
committed
Fixing some test errors
1 parent c70fabd commit 05a701f

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

tests/test_asyncio/test_commands.py

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3627,9 +3627,7 @@ async def test_xreadgroup_with_claim_min_idle_time_multiple_streams_same_slots(
36273627
await r.xgroup_create(stream_2, group, 0)
36283628

36293629
# read all the messages - this will save the msgs in PEL
3630-
await r.xreadgroup(
3631-
group, consumer_1, streams={stream_1: ">", stream_2: ">"}
3632-
)
3630+
await r.xreadgroup(group, consumer_1, streams={stream_1: ">", stream_2: ">"})
36333631

36343632
# wait for 100ms - so that the messages would have been in the PEL for long enough
36353633
await asyncio.sleep(0.1)
@@ -3690,6 +3688,7 @@ async def test_xreadgroup_with_claim_min_idle_time_multiple_streams_same_slots(
36903688
await r.xadd(stream_2, {"key_m6": "val_m6"})
36913689

36923690
# read all the messages - this will save the msgs in PEL
3691+
r.xreadgroup(group, consumer_1, streams={stream_1: ">", stream_2: ">"})
36933692

36943693
# add 2 more messages
36953694
m7 = await r.xadd(stream_1, {"key_m7": "val_m7"})
@@ -3745,9 +3744,7 @@ async def test_xreadgroup_with_claim_min_idle_time_multiple_streams(self, r):
37453744
await r.xgroup_create(stream_2, group, 0)
37463745

37473746
# read all the messages - this will save the msgs in PEL
3748-
await r.xreadgroup(
3749-
group, consumer_1, streams={stream_1: ">", stream_2: ">"}
3750-
)
3747+
await r.xreadgroup(group, consumer_1, streams={stream_1: ">", stream_2: ">"})
37513748

37523749
# wait for 100ms - so that the messages would have been in the PEL for long enough
37533750
await asyncio.sleep(0.1)
@@ -3808,9 +3805,7 @@ async def test_xreadgroup_with_claim_min_idle_time_multiple_streams(self, r):
38083805
await r.xadd(stream_2, {"key_m6": "val_m6"})
38093806

38103807
# read all the messages - this will save the msgs in PEL
3811-
res = await r.xreadgroup(
3812-
group, consumer_1, streams={stream_1: ">", stream_2: ">"}
3813-
)
3808+
await r.xreadgroup(group, consumer_1, streams={stream_1: ">", stream_2: ">"})
38143809

38153810
# add 2 more messages
38163811
m7 = await r.xadd(stream_1, {"key_m7": "val_m7"})

tests/test_commands.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5300,7 +5300,7 @@ def test_xreadgroup_with_claim_min_idle_time_multiple_streams_same_slots(self, r
53005300
r.xadd(stream_2, {"key_m6": "val_m6"})
53015301

53025302
# read all the messages - this will save the msgs in PEL
5303-
res = r.xreadgroup(group, consumer_1, streams={stream_1: ">", stream_2: ">"})
5303+
r.xreadgroup(group, consumer_1, streams={stream_1: ">", stream_2: ">"})
53045304

53055305
# add 2 more messages
53065306
m7 = r.xadd(stream_1, {"key_m7": "val_m7"})
@@ -5399,7 +5399,7 @@ def test_xreadgroup_with_claim_min_idle_time_multiple_streams(self, r):
53995399
r.xadd(stream_2, {"key_m6": "val_m6"})
54005400

54015401
# read all the messages - this will save the msgs in PEL
5402-
res = r.xreadgroup(group, consumer_1, streams={stream_1: ">", stream_2: ">"})
5402+
r.xreadgroup(group, consumer_1, streams={stream_1: ">", stream_2: ">"})
54035403

54045404
# add 2 more messages
54055405
m7 = r.xadd(stream_1, {"key_m7": "val_m7"})

0 commit comments

Comments
 (0)