Skip to content

Commit 51ee07b

Browse files
committed
Fix Sentinel test case that occasionally fails on CI
1 parent f59ccc8 commit 51ee07b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/sentinel_test.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,8 @@ def test_sentinel_retries
240240
RedisMock.start(master) do |master_port|
241241
RedisMock.start(handler.call(:s1, master_port)) do |s1_port|
242242
RedisMock.start(handler.call(:s2, master_port)) do |s2_port|
243+
sentinels[0][:port] = s1_port + 1
244+
sentinels[1][:port] = s2_port + 2
243245
redis = Redis.new(:url => "redis://master1", :sentinels => sentinels, :role => :master, :reconnect_attempts => 0)
244246

245247
assert redis.ping

0 commit comments

Comments
 (0)