Unverified Commit d2fde2f6 authored by Binbin's avatar Binbin Committed by GitHub
Browse files

Fix cluster tests failing due to subcommand names (#10231)

Introduced in #10128
parent 65ef543f
......@@ -67,9 +67,8 @@ 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}
......@@ -87,9 +86,8 @@ 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]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment