Skip to content

Commit

Permalink
flaky
Browse files Browse the repository at this point in the history
  • Loading branch information
supercaracal committed May 28, 2024
1 parent ce49bc7 commit fe04811
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/test_against_cluster_state.rb
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@ def wait_for_replication
server_side_timeout = (TEST_TIMEOUT_SEC * 1000).to_i
swap_timeout(@client, timeout: 0.1) do |client|
client.blocking_call(client_side_timeout, 'WAIT', TEST_REPLICA_SIZE, server_side_timeout)
rescue RedisClient::Cluster::ErrorCollection => e
raise unless e.errors.values.all? { |err| err.message.start_with?('ERR WAIT cannot be used with replica instances') }
end
end

Expand Down

0 comments on commit fe04811

Please sign in to comment.