Skip to content

Commit

Permalink
Add ssl=true into the test
Browse files Browse the repository at this point in the history
  • Loading branch information
benjie authored and brianc committed Oct 4, 2020
1 parent 9cbea21 commit e421167
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/pg-connection-string/test/parse.js
Expand Up @@ -279,8 +279,8 @@ describe('parse', function () {
subject.ssl.should.eql({})
})

it("configuration parameter sslmode=require doesn't overwrite sslrootcert=/path/to/ca", function () {
var connectionString = 'pg:///?sslrootcert=' + __dirname + '/example.ca&sslmode=require'
it('configuration parameter ssl=true and sslmode=require still work with sslrootcert=/path/to/ca', function () {
var connectionString = 'pg:///?ssl=true&sslrootcert=' + __dirname + '/example.ca&sslmode=require'
var subject = parse(connectionString)
subject.ssl.should.eql({
ca: 'example ca\n',
Expand Down

0 comments on commit e421167

Please sign in to comment.