Skip to content

Commit 2d8217a

Browse files
committed
Stabilize the cluster suite
1 parent 60f5320 commit 2d8217a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/cluster/commands_on_cluster_test.rb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,11 @@ def test_cluster_slots
138138
assert_equal true, sample_slot.fetch('master').key?('node_id')
139139
assert_equal true, sample_slot.key?('replicas')
140140
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')
141+
sample_slot.fetch('replicas').each do |replica|
142+
assert_equal true, replica.key?('ip')
143+
assert_equal true, replica.key?('port')
144+
assert_equal true, replica.key?('node_id')
145+
end
144146
end
145147

146148
def test_readonly

0 commit comments

Comments
 (0)