From d2fde2f6557a0c2f2963a0a0fb626510af62f545 Mon Sep 17 00:00:00 2001 From: Binbin Date: Fri, 4 Feb 2022 17:32:30 +0800 Subject: [PATCH] Fix cluster tests failing due to subcommand names (#10231) Introduced in #10128 --- tests/cluster/tests/23-multiple-slot-operations.tcl | 10 ++++------ 1 file 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}