We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1cbd507 + 28e66cc commit a9b3ef7Copy full SHA for a9b3ef7
test/integration/connection-pool/error-tests.js
@@ -2,10 +2,8 @@
2
var helper = require('./test-helper')
3
const pg = helper.pg
4
5
-// first make pool hold 2 clients
6
-pg.defaults.poolSize = 2
7
-
8
-const pool = new pg.Pool()
+// make pool hold 2 clients
+const pool = new pg.Pool({ max: 2 })
9
10
const suite = new helper.Suite()
11
suite.test('connecting to invalid port', (cb) => {
0 commit comments