Fix new cli subscribed mode test in cluster mode (#1533)

We need to add a hash tag in cluster mode.
Fixes #1531.

Signed-off-by: Binbin <binloveplay1314@qq.com>
This commit is contained in:
Binbin 2025-01-09 12:21:31 +08:00 committed by GitHub
parent 80c35402bc
commit b207b421bc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -681,14 +681,13 @@ if {!$::tls} { ;# fake_redis_node doesn't support TLS
}
test "valkey-cli pubsub mode with multiple shard channel subscriptions" {
set fd [open_cli]
write_cli $fd ":get pubsub"
set pubsub_status [string trim [read_cli $fd]]
assert_equal "0" $pubsub_status
write_cli $fd "SSUBSCRIBE schannel1 schannel2 schannel3"
write_cli $fd "SSUBSCRIBE {schannel}1 {schannel}2 {schannel}3"
set response [read_cli $fd]
write_cli $fd ":get pubsub"