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