undo test of postgres9.5 error

This commit is contained in:
Simon Martín 2017-11-24 12:22:30 +01:00
parent 296d1878fd
commit 11e0ac89d2
3 changed files with 9 additions and 6 deletions

View File

@ -5,6 +5,7 @@ addons:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
- postgresql: 9.5
before_install:
# Add custom PPAs from cartodb

View File

@ -18,7 +18,7 @@ ErrorHandler.prototype.getMessage = function() {
// return conditionToMessage[this.err.code] || this.err.message;
if (message &&
(message.match(/statement timeout/) ||
message === /RuntimeError: Execution of function interrupted by signal/)
message.indexOf('RuntimeError: Execution of function interrupted by signal') > -1)
) {
message = conditionToMessage[pgErrorCodes.conditionToCode.query_canceled];
}

View File

@ -812,11 +812,13 @@ it('GET with callback must return 200 status error even if it is an error', func
}
},
function(err, res) {
var body = JSON.parse(res.body);
assert.deepEqual(body.error, [
'You are over platform\'s limits. Please contact us to know more details'
]);
var error = JSON.parse(res.body);
assert.deepEqual(error, {
error: [
'You are over platform\'s limits. Please contact us to know more details'
]
});
done();
});
});