diff options
author | guybe7 <guy.benoish@redislabs.com> | 2022-04-17 14:43:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-17 15:43:22 +0300 |
commit | f49ff156ecd62aee104cff9f88fb62948575e6b0 (patch) | |
tree | d7c5b09264550a2c5f17177b59182788318b24ec /tests/support/util.tcl | |
parent | 789c94feceb7cb0b618dcb912c0151625d913887 (diff) | |
download | redis-f49ff156ecd62aee104cff9f88fb62948575e6b0.tar.gz |
Add RM_PublishMessageShard (#10543)
since PUBLISH and SPUBLISH use different dictionaries for channels and clients,
and we already have an API for PUBLISH, it only makes sense to have one for SPUBLISH
Add test coverage and unifying some test infrastructure.
Diffstat (limited to 'tests/support/util.tcl')
-rw-r--r-- | tests/support/util.tcl | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/support/util.tcl b/tests/support/util.tcl index 4ad96ab10..a7972a854 100644 --- a/tests/support/util.tcl +++ b/tests/support/util.tcl @@ -823,11 +823,21 @@ proc subscribe {client channels} { consume_subscribe_messages $client subscribe $channels } +proc ssubscribe {client channels} { + $client ssubscribe {*}$channels + consume_subscribe_messages $client ssubscribe $channels +} + proc unsubscribe {client {channels {}}} { $client unsubscribe {*}$channels consume_subscribe_messages $client unsubscribe $channels } +proc sunsubscribe {client {channels {}}} { + $client sunsubscribe {*}$channels + consume_subscribe_messages $client sunsubscribe $channels +} + proc psubscribe {client channels} { $client psubscribe {*}$channels consume_subscribe_messages $client psubscribe $channels |