node-postgres/test/integration/connection-pool/native-instance-tests.js

16 lines
296 B
JavaScript

var helper = require(__dirname + "/../test-helper")
var pg = helper.pg
var native = helper.args.native
var pool = new pg.Pool()
pool.connect(assert.calls(function(err, client, done) {
if (native) {
assert(client.native)
} else {
assert(!client.native)
}
done()
pool.end()
}))