Skip to content

Commit 3074436

Browse files
committed
Tidy up a bit of testing
1 parent 2c3f55e commit 3074436

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/integration/client/query-error-handling-tests.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ test('error during query execution', function() {
3030
var killIdleQuery = `SELECT ${pidColName}, (SELECT pg_cancel_backend(${pidColName})) AS killed FROM pg_stat_activity WHERE ${queryColName} LIKE $1`;
3131
client2.query(killIdleQuery, [queryText], assert.calls(function(err, res) {
3232
assert.ifError(err);
33-
assert.equal(res.rows.length, 1);
33+
assert(res.rows.length > 0);
3434
client2.end();
3535
assert.emits(client2, 'end');
3636
}));
@@ -41,7 +41,7 @@ test('error during query execution', function() {
4141
});
4242

4343
if (helper.config.native) {
44-
return console.log("\nTODO: this should work on native as well")
44+
return
4545
}
4646

4747
test('9.3 column error fields', function() {

0 commit comments

Comments
 (0)