We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d240427 commit 0ed7b57Copy full SHA for 0ed7b57
test/integration/domain-tests.js
@@ -1,6 +1,8 @@
1
-var helper = require('./test-helper')
2
var async = require('async')
3
+var helper = require('./test-helper')
4
+var Query = helper.pg.Query
5
+
6
var testWithoutDomain = function(cb) {
7
test('no domain', function() {
8
assert(!process.domain)
@@ -42,7 +44,7 @@ var testErrorWithDomain = function(cb) {
42
44
})
43
45
domain.run(function() {
46
helper.pg.connect(helper.config, assert.success(function(client, done) {
- client.query('SELECT SLDKJFLSKDJF')
47
+ client.query(new Query('SELECT SLDKJFLSKDJF'))
48
client.on('drain', done)
49
}))
50
0 commit comments