summaryrefslogtreecommitdiff
path: root/tests/cluster
diff options
context:
space:
mode:
authorBinbin <binloveplay1314@qq.com>2022-02-04 17:32:30 +0800
committerGitHub <noreply@github.com>2022-02-04 11:32:30 +0200
commitd2fde2f6557a0c2f2963a0a0fb626510af62f545 (patch)
tree1a214c5dbd5224a5be22a2bbc9ee8a23237c2459 /tests/cluster
parent65ef543f8cc4d470f554f06e50594e85aad0d617 (diff)
downloadredis-d2fde2f6557a0c2f2963a0a0fb626510af62f545.tar.gz
Fix cluster tests failing due to subcommand names (#10231)
Introduced in #10128
Diffstat (limited to 'tests/cluster')
-rw-r--r--tests/cluster/tests/23-multiple-slot-operations.tcl10
1 files changed, 4 insertions, 6 deletions
diff --git a/tests/cluster/tests/23-multiple-slot-operations.tcl b/tests/cluster/tests/23-multiple-slot-operations.tcl
index 0d1042739..060ab577a 100644
--- a/tests/cluster/tests/23-multiple-slot-operations.tcl
+++ b/tests/cluster/tests/23-multiple-slot-operations.tcl
@@ -67,10 +67,9 @@ test "Continuous slots distribution" {
}
test "ADDSLOTSRANGE command with several boundary conditions test suite" {
-
# Add multiple slots with incorrect argument number
- assert_error "ERR wrong number of arguments for 'addslotsrange' command" {R 0 cluster ADDSLOTSRANGE 3001 3020 3030}
-
+ assert_error "ERR wrong number of arguments for 'cluster|addslotsrange' command" {R 0 cluster ADDSLOTSRANGE 3001 3020 3030}
+
# Add multiple slots with invalid input slot
assert_error "ERR Invalid or out of range slot" {R 0 cluster ADDSLOTSRANGE 3001 3020 3030 aaa}
assert_error "ERR Invalid or out of range slot" {R 0 cluster ADDSLOTSRANGE 3001 3020 3030 70000}
@@ -87,12 +86,11 @@ test "ADDSLOTSRANGE command with several boundary conditions test suite" {
}
test "DELSLOTSRANGE command with several boundary conditions test suite" {
-
# Delete multiple slots with incorrect argument number
- assert_error "ERR wrong number of arguments for 'delslotsrange' command" {R 0 cluster DELSLOTSRANGE 1000 2000 2100}
+ assert_error "ERR wrong number of arguments for 'cluster|delslotsrange' command" {R 0 cluster DELSLOTSRANGE 1000 2000 2100}
assert_match "* 0-3000 3051-3276*" [$master1 CLUSTER NODES]
assert_match "*0 3000*3051 3276*" [$master1 CLUSTER SLOTS]
-
+
# Delete multiple slots with invalid input slot
assert_error "ERR Invalid or out of range slot" {R 0 cluster DELSLOTSRANGE 1000 2000 2100 aaa}
assert_error "ERR Invalid or out of range slot" {R 0 cluster DELSLOTSRANGE 1000 2000 2100 70000}