Skip to content

Commit 0ed7b57

Browse files
committed
Make all integration tests pass
1 parent d240427 commit 0ed7b57

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/integration/domain-tests.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
var helper = require('./test-helper')
21
var async = require('async')
32

3+
var helper = require('./test-helper')
4+
var Query = helper.pg.Query
5+
46
var testWithoutDomain = function(cb) {
57
test('no domain', function() {
68
assert(!process.domain)
@@ -42,7 +44,7 @@ var testErrorWithDomain = function(cb) {
4244
})
4345
domain.run(function() {
4446
helper.pg.connect(helper.config, assert.success(function(client, done) {
45-
client.query('SELECT SLDKJFLSKDJF')
47+
client.query(new Query('SELECT SLDKJFLSKDJF'))
4648
client.on('drain', done)
4749
}))
4850
})

0 commit comments

Comments
 (0)