From 947b53a0cc0f254f4642a2b7b5aa81d02033d49a Mon Sep 17 00:00:00 2001 From: Christophe Macabiau Date: Wed, 2 Nov 2011 19:16:13 +0100 Subject: [PATCH] use the correct pg bindings --- test/integration/client/cancel-query-tests.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/test/integration/client/cancel-query-tests.js b/test/integration/client/cancel-query-tests.js index 84240ad..36d5710 100644 --- a/test/integration/client/cancel-query-tests.js +++ b/test/integration/client/cancel-query-tests.js @@ -1,5 +1,4 @@ var helper = require(__dirname+"/test-helper"); -var pg = require(__dirname + '/../../../lib'); //before running this test make sure you run the script create-test-tables test("cancellation of a query", function() { @@ -29,9 +28,9 @@ test("cancellation of a query", function() { rows4++; }); - pg.cancel(helper.connectionString, client, query1); - pg.cancel(helper.connectionString, client, query2); - pg.cancel(helper.connectionString, client, query4); + helper.pg.cancel(helper.connectionString, client, query1); + helper.pg.cancel(helper.connectionString, client, query2); + helper.pg.cancel(helper.connectionString, client, query4); setTimeout(function() { assert.equal(rows1, 0);