From eec75ea87146ac733d98b245e9bcba4cdb49d6da Mon Sep 17 00:00:00 2001 From: brianc Date: Sun, 19 Dec 2010 14:49:14 -0600 Subject: [PATCH] die on client/query errors in integration tests --- test/integration/client/test-helper.js | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/test/integration/client/test-helper.js b/test/integration/client/test-helper.js index 3e7785ab..6cc8146d 100644 --- a/test/integration/client/test-helper.js +++ b/test/integration/client/test-helper.js @@ -10,17 +10,7 @@ module.exports = { host: helper.args.host, port: helper.args.port }); - client.on('error', function(e, d) { - console.log(e); - }); - var rawQuery = client.query; - client.query = function() { - var q = rawQuery.apply(this, arguments); - q.on('error', function(e) { - console.log(e); - }); - return q; - }; + client.connect(); return client; },