Skip to content

Commit aadb291

Browse files
committed
fix broken test
1 parent 9c7a33c commit aadb291

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

test/integration/connection-pool/error-tests.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ pg.defaults.poolSize = 2;
77

88
var killIdleQuery = 'SELECT procpid, (SELECT pg_terminate_backend(procpid)) AS killed FROM pg_stat_activity WHERE current_query LIKE \'<IDLE>\'';
99

10-
return console.log('TEMP IGNORE THIS TO GET REST OF SUITE PASSING')
1110
//get first client
1211
pg.connect(helper.config, assert.success(function(client, done) {
1312
client.id = 1;
@@ -19,17 +18,12 @@ pg.connect(helper.config, assert.success(function(client, done) {
1918
assert.ok(error);
2019
assert.ok(brokenClient);
2120
assert.equal(client.id, brokenClient.id);
22-
console.log('got pg error')
23-
console.log('calling pg.end()')
24-
//done2();
25-
pg.end();
2621
});
2722
//kill the connection from client
2823
client2.query(killIdleQuery, assert.success(function(res) {
2924
//check to make sure client connection actually was killed
30-
console.log('\nkilled query');
3125
assert.lengthIs(res.rows, 1);
32-
done();
26+
pg.end();
3327
}));
3428
}));
3529
}));

0 commit comments

Comments
 (0)