Merge pull request #1684 from dominicletz/patch-1

Replace poolSize by max in error test
This commit is contained in:
Charmander 2018-07-09 16:00:55 +00:00 committed by GitHub
commit a9b3ef7cd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,10 +2,8 @@
var helper = require('./test-helper')
const pg = helper.pg
// first make pool hold 2 clients
pg.defaults.poolSize = 2
const pool = new pg.Pool()
// make pool hold 2 clients
const pool = new pg.Pool({ max: 2 })
const suite = new helper.Suite()
suite.test('connecting to invalid port', (cb) => {