We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60f5320 commit 2d8217aCopy full SHA for 2d8217a
test/cluster/commands_on_cluster_test.rb
@@ -138,9 +138,11 @@ def test_cluster_slots
138
assert_equal true, sample_slot.fetch('master').key?('node_id')
139
assert_equal true, sample_slot.key?('replicas')
140
assert_equal true, sample_slot.fetch('replicas').is_a?(Array)
141
- assert_equal true, sample_slot.fetch('replicas').first.key?('ip')
142
- assert_equal true, sample_slot.fetch('replicas').first.key?('port')
143
- assert_equal true, sample_slot.fetch('replicas').first.key?('node_id')
+ sample_slot.fetch('replicas').each do |replica|
+ assert_equal true, replica.key?('ip')
+ assert_equal true, replica.key?('port')
144
+ assert_equal true, replica.key?('node_id')
145
+ end
146
end
147
148
def test_readonly
0 commit comments