use the correct pg bindings
This commit is contained in:
parent
c98ebb55e2
commit
947b53a0cc
@ -1,5 +1,4 @@
|
|||||||
var helper = require(__dirname+"/test-helper");
|
var helper = require(__dirname+"/test-helper");
|
||||||
var pg = require(__dirname + '/../../../lib');
|
|
||||||
|
|
||||||
//before running this test make sure you run the script create-test-tables
|
//before running this test make sure you run the script create-test-tables
|
||||||
test("cancellation of a query", function() {
|
test("cancellation of a query", function() {
|
||||||
@ -29,9 +28,9 @@ test("cancellation of a query", function() {
|
|||||||
rows4++;
|
rows4++;
|
||||||
});
|
});
|
||||||
|
|
||||||
pg.cancel(helper.connectionString, client, query1);
|
helper.pg.cancel(helper.connectionString, client, query1);
|
||||||
pg.cancel(helper.connectionString, client, query2);
|
helper.pg.cancel(helper.connectionString, client, query2);
|
||||||
pg.cancel(helper.connectionString, client, query4);
|
helper.pg.cancel(helper.connectionString, client, query4);
|
||||||
|
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
assert.equal(rows1, 0);
|
assert.equal(rows1, 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user