undo test of postgres9.5 error
This commit is contained in:
parent
296d1878fd
commit
11e0ac89d2
@ -5,6 +5,7 @@ addons:
|
||||
- ubuntu-toolchain-r-test
|
||||
packages:
|
||||
- g++-4.8
|
||||
- postgresql: 9.5
|
||||
|
||||
before_install:
|
||||
# Add custom PPAs from cartodb
|
||||
|
@ -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];
|
||||
}
|
||||
|
@ -812,10 +812,12 @@ 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();
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user