Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions lib/redis/connection/hiredis.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ def self.connect(config)

if config[:scheme] == "unix"
connection.connect_unix(config[:path], connect_timeout)
elsif config[:scheme] == "rediss" || config[:ssl]
raise NotImplementedError, "SSL not supported by hiredis driver"
else
connection.connect(config[:host], config[:port], connect_timeout)
end
Expand Down
11 changes: 0 additions & 11 deletions test/ssl_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,6 @@ def test_ssl_blocking
end
end

driver(:hiredis, :synchrony) do
def test_ssl_not_implemented_exception
assert_raises(NotImplementedError) do
RedisMock.start({ ping: proc { "+PONG" } }, ssl_server_opts("trusted")) do |port|
redis = Redis.new(port: port, ssl: true, ssl_params: { ca_file: ssl_ca_file })
redis.ping
end
end
end
end

private

def ssl_server_opts(prefix)
Expand Down