Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove double-send of ssl request packet (#2086)
* Remove double-send of ssl request packet I missed the fact that we are already sending this. Since I don't have good test coverage for ssl [which I am planning on fixing next](#2009) this got missed. I'm forcing an SSL test on travis. This will break for me locally as I don't have SSL enabled on my local test DB. Something I will also remedy.
- Loading branch information
Showing
3 changed files
with
16 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,4 @@ package-lock.json | |
dist | ||
.DS_Store | ||
.vscode/ | ||
manually-test-on-heroku.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
|
||
|
||
"use strict" | ||
var helper = require('./../test-helper') | ||
var assert = require('assert') | ||
|
||
const suite = new helper.Suite() | ||
|
||
suite.testAsync('it should connect over ssl', async () => { | ||
const client = new helper.pg.Client({ ssl: 'require'}) | ||
await client.connect() | ||
const { rows } = await client.query('SELECT NOW()') | ||
assert.strictEqual(rows.length, 1) | ||
await client.end() | ||
}) |