Skip to content

Commit

Permalink
fix:tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cunla committed Aug 14, 2023
1 parent 6b2ce0e commit 8df2350
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_mixins/test_pubsub_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ def test_pubsub_numsub(r: redis.Redis):
assert r.pubsub_numsub() == []
assert r.pubsub_numsub(a, "non-existing") == [(a.encode(), 2), (b"non-existing", 0)]


@pytest.mark.min_server('7')
@testtools.run_test_if_redispy_ver('above', '5.0.0rc2')
def test_published_message_to_shard_channel(r: redis.Redis):
p = r.pubsub()
Expand All @@ -477,7 +477,7 @@ def test_published_message_to_shard_channel(r: redis.Redis):
assert isinstance(message, dict)
assert message == make_message("smessage", "foo", "test message")


@pytest.mark.min_server('7')
@testtools.run_test_if_redispy_ver('above', '5.0.0rc2')
def test_subscribe_property_with_shard_channels_cluster(r: redis.Redis):
p = r.pubsub()
Expand Down

0 comments on commit 8df2350

Please sign in to comment.