die on client/query errors in integration tests
This commit is contained in:
parent
49f5da8f02
commit
eec75ea871
@ -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;
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user