Skip to content

Commit 273aa5f

Browse files
committed
test: ignore readonly error while making a cluster for testing
1 parent 77a200e commit 273aa5f

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
@@ -253,7 +253,7 @@ def flush_all_data(clients)
253253
clients.each do |c|
254254
c.call('FLUSHALL')
255255
print_debug("#{c.config.host}:#{c.config.port} ... FLUSHALL")
256-
rescue ::RedisClient::CommandError
256+
rescue ::RedisClient::CommandError, ::RedisClient::ReadOnlyError
257257
# READONLY You can't write against a read only replica.
258258
nil
259259
end

0 commit comments

Comments
 (0)