Skip to content

Commit

Permalink
test: fix a error handling bug (#341)
Browse files Browse the repository at this point in the history
  • Loading branch information
supercaracal committed Mar 13, 2024
1 parent 7eff2f2 commit 735b529
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/cluster_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 735b529

Please sign in to comment.