From bd1acb565ec44e0542167d1dfff266593ae83ff8 Mon Sep 17 00:00:00 2001 From: Taishi Kasuga Date: Wed, 13 Mar 2024 15:26:48 +0900 Subject: [PATCH] test: fix a error handling bug --- test/cluster_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/cluster_controller.rb b/test/cluster_controller.rb index ca2d4902..d07bbf46 100644 --- a/test/cluster_controller.rb +++ b/test/cluster_controller.rb @@ -146,7 +146,7 @@ def finish_resharding(slot:, src_node_key:, dest_node_key:) # rubocop:disable Me ([dest, src] + rest).each do |cli| cli.call('CLUSTER', 'SETSLOT', slot, 'NODE', id) rescue ::RedisClient::CommandError => e - raise if e.message != 'ERR Please use SETSLOT only with masters.' + raise unless e.message.start_with?('ERR Please use SETSLOT only with masters.') # how weird, ignore end