Make all integration tests pass

This commit is contained in:
Brian M. Carlson 2017-06-10 16:47:33 -05:00 committed by Brian C
parent b8c2bebcac
commit e284cfc110

View File

@ -1,6 +1,8 @@
var helper = require('./test-helper')
var async = require('async')
var helper = require('./test-helper')
var Query = helper.pg.Query
var testWithoutDomain = function(cb) {
test('no domain', function() {
assert(!process.domain)
@ -42,7 +44,7 @@ var testErrorWithDomain = function(cb) {
})
domain.run(function() {
helper.pg.connect(helper.config, assert.success(function(client, done) {
client.query('SELECT SLDKJFLSKDJF')
client.query(new Query('SELECT SLDKJFLSKDJF'))
client.on('drain', done)
}))
})