From 30744362360f2defeaead502b39b9f1f1bb17702 Mon Sep 17 00:00:00 2001 From: "Brian M. Carlson" Date: Tue, 13 Jun 2017 19:47:03 -0500 Subject: [PATCH] Tidy up a bit of testing --- test/integration/client/query-error-handling-tests.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/integration/client/query-error-handling-tests.js b/test/integration/client/query-error-handling-tests.js index f2dd294e..d5ecd7bd 100644 --- a/test/integration/client/query-error-handling-tests.js +++ b/test/integration/client/query-error-handling-tests.js @@ -30,7 +30,7 @@ test('error during query execution', function() { var killIdleQuery = `SELECT ${pidColName}, (SELECT pg_cancel_backend(${pidColName})) AS killed FROM pg_stat_activity WHERE ${queryColName} LIKE $1`; client2.query(killIdleQuery, [queryText], assert.calls(function(err, res) { assert.ifError(err); - assert.equal(res.rows.length, 1); + assert(res.rows.length > 0); client2.end(); assert.emits(client2, 'end'); })); @@ -41,7 +41,7 @@ test('error during query execution', function() { }); if (helper.config.native) { - return console.log("\nTODO: this should work on native as well") + return } test('9.3 column error fields', function() {