Skip to content

Commit

Permalink
Make SSL connections independent from files in ~/.postgresql
Browse files Browse the repository at this point in the history
Certificate files in this directory led to test failures before.
  • Loading branch information
larskanis committed Jul 27, 2022
1 parent b44bb81 commit ce85904
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/helpers.rb
Expand Up @@ -214,7 +214,8 @@ def define_testing_conninfo
ENV['PGPORT'] ||= "54321"
@port = ENV['PGPORT'].to_i
ENV['PGHOST'] = 'localhost'
@conninfo = "host=localhost port=#{@port} dbname=test"
td = TEST_DIRECTORY + 'data'
@conninfo = "host=localhost port=#{@port} dbname=test sslrootcert=#{td + 'ruby-pg-ca-cert'} sslcert=#{td + 'ruby-pg-client-cert'} sslkey=#{td + 'ruby-pg-client-key'}"
@unix_socket = TEST_DIRECTORY.to_s
end

Expand Down

0 comments on commit ce85904

Please sign in to comment.