Skip to content

Commit e28d1c8

Browse files
committed
If we can't get the role, use a translated role
1 parent 833f3e3 commit e28d1c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/redis/client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ def check(client)
506506
role = client.call([:role])[0]
507507
rescue Redis::CommandError
508508
# Assume the test is passed if we can't get a reply from ROLE...
509-
role = @role
509+
role = EXPECTED_ROLES.fetch(@role, @role)
510510
end
511511

512512
if role != EXPECTED_ROLES.fetch(@role, @role)

0 commit comments

Comments
 (0)