die on client/query errors in integration tests

This commit is contained in:
brianc 2010-12-19 14:49:14 -06:00
parent 49f5da8f02
commit eec75ea871

View File

@ -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;
},