diff --git a/test/integration/connection-pool/error-tests.js b/test/integration/connection-pool/error-tests.js index fbc0fded..17cdcc47 100644 --- a/test/integration/connection-pool/error-tests.js +++ b/test/integration/connection-pool/error-tests.js @@ -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) => {