Skip to content

Commit 735b529

Browse files
authored
test: fix a error handling bug (#341)
1 parent 7eff2f2 commit 735b529

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/cluster_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def finish_resharding(slot:, src_node_key:, dest_node_key:) # rubocop:disable Me
146146
([dest, src] + rest).each do |cli|
147147
cli.call('CLUSTER', 'SETSLOT', slot, 'NODE', id)
148148
rescue ::RedisClient::CommandError => e
149-
raise if e.message != 'ERR Please use SETSLOT only with masters.'
149+
raise unless e.message.start_with?('ERR Please use SETSLOT only with masters.')
150150
# how weird, ignore
151151
end
152152

0 commit comments

Comments
 (0)