File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -366,6 +366,8 @@ def ensure_connected
366
366
end
367
367
368
368
def _parse_options ( options )
369
+ return options if options [ :_parsed ]
370
+
369
371
defaults = DEFAULTS . dup
370
372
options = options . dup
371
373
@@ -450,6 +452,8 @@ def _parse_options(options)
450
452
end
451
453
end
452
454
455
+ options [ :_parsed ] = true
456
+
453
457
options
454
458
end
455
459
@@ -485,6 +489,7 @@ def initialize(options)
485
489
super ( options )
486
490
487
491
@sentinels = @options . delete ( :sentinels ) . dup
492
+ @options . delete ( :password )
488
493
@role = @options . fetch ( :role , "master" ) . to_s
489
494
@master = @options [ :host ]
490
495
end
Original file line number Diff line number Diff line change @@ -119,6 +119,10 @@ def test_sentinel_with_auth
119
119
}
120
120
121
121
sentinel = {
122
+ :auth => lambda do |pass |
123
+ commands [ :s1 ] << [ "auth" , pass ]
124
+ "-ERR unknown command 'auth'"
125
+ end ,
122
126
:sentinel => lambda do |command , *args |
123
127
commands [ :s1 ] << [ command , *args ]
124
128
[ "127.0.0.1" , "6382" ]
You can’t perform that action at this time.
0 commit comments