Skip to content

Commit

Permalink
Fix new cli subscribed mode test in cluster mode
Browse files Browse the repository at this point in the history
We need to add a hash tag in cluster mode.
Fixes valkey-io#1531.

Signed-off-by: Binbin <[email protected]>
  • Loading branch information
enjoy-binbin committed Jan 9, 2025
1 parent 9f4815a commit 5211041
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/integration/valkey-cli.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 5211041

Please sign in to comment.