From e284cfc110da5b86930636765a243bf0fa775932 Mon Sep 17 00:00:00 2001 From: "Brian M. Carlson" Date: Sat, 10 Jun 2017 16:47:33 -0500 Subject: [PATCH] Make all integration tests pass --- test/integration/domain-tests.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/integration/domain-tests.js b/test/integration/domain-tests.js index a51f13dd..c3beae52 100644 --- a/test/integration/domain-tests.js +++ b/test/integration/domain-tests.js @@ -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) })) })