MCPcopy
hub / github.com/redis/redis-py / test_xnack_silent

Method test_xnack_silent

tests/test_commands.py:6848–6858  ·  view source on GitHub ↗
(self, r)

Source from the content-addressed store, hash-verified

6846
6847 @skip_if_server_version_lt("8.7.2")
6848 def test_xnack_silent(self, r):
6849 stream = "stream"
6850 group = "group"
6851 consumer = "consumer"
6852 m1 = r.xadd(stream, {"foo": "bar"})
6853 m2 = r.xadd(stream, {"foo": "bar"})
6854 r.xgroup_create(stream, group, 0)
6855 r.xreadgroup(group, consumer, streams={stream: ">"})
6856 # SILENT mode returns count of NACKed messages
6857 result = r.xnack(stream, group, "SILENT", m1, m2)
6858 assert result == 2
6859
6860 @skip_if_server_version_lt("8.7.2")
6861 def test_xnack_fail(self, r):

Callers

nothing calls this directly

Calls 4

xaddMethod · 0.80
xgroup_createMethod · 0.80
xreadgroupMethod · 0.80
xnackMethod · 0.80

Tested by

no test coverage detected