use the correct pg bindings

This commit is contained in:
Christophe Macabiau 2011-11-02 19:16:13 +01:00
parent c98ebb55e2
commit 947b53a0cc

View File

@ -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);