From 71036d4cdbab9fc47aa33cce5bbfad5f5b53e395 Mon Sep 17 00:00:00 2001 From: WuYunlong Date: Mon, 11 May 2020 13:13:51 +0800 Subject: [PATCH] Add a test to prove current tcl cluster client can not handle keys with hash tag. --- tests/cluster/tests/15-cluster-slots.tcl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/cluster/tests/15-cluster-slots.tcl b/tests/cluster/tests/15-cluster-slots.tcl index dc9938ef6..1b33c57bd 100644 --- a/tests/cluster/tests/15-cluster-slots.tcl +++ b/tests/cluster/tests/15-cluster-slots.tcl @@ -41,4 +41,10 @@ test "client do not break when cluster slot" { if { [catch {R 0 cluster slots}] } { fail "output overflow when cluster slots" } -} \ No newline at end of file +} + +test "client can handle keys with hash tag" { + set cluster [redis_cluster 127.0.0.1:[get_instance_attrib redis 0 port]] + $cluster set foo{tag} bar + $cluster close +}