Skip to content

Commit 28e66cc

Browse files
authored
Use pool constructor to pass pool size
1 parent 2ea5f91 commit 28e66cc

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

test/integration/connection-pool/error-tests.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@
22
var helper = require('./test-helper')
33
const pg = helper.pg
44

5-
// first make pool hold 2 clients
6-
pg.defaults.max = 2
7-
8-
const pool = new pg.Pool()
5+
// make pool hold 2 clients
6+
const pool = new pg.Pool({ max: 2 })
97

108
const suite = new helper.Suite()
119
suite.test('connecting to invalid port', (cb) => {

0 commit comments

Comments
 (0)