From 521104161c7cfabbc1e3ce53e19bcf959bbedf69 Mon Sep 17 00:00:00 2001 From: Binbin Date: Thu, 9 Jan 2025 11:48:16 +0800 Subject: [PATCH] Fix new cli subscribed mode test in cluster mode We need to add a hash tag in cluster mode. Fixes #1531. Signed-off-by: Binbin --- tests/integration/valkey-cli.tcl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/integration/valkey-cli.tcl b/tests/integration/valkey-cli.tcl index a56818b8c2..095f1e77bc 100644 --- a/tests/integration/valkey-cli.tcl +++ b/tests/integration/valkey-cli.tcl @@ -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"