From ae2c6f01d7df40cb785fb9335462e826edb630be Mon Sep 17 00:00:00 2001 From: Raul Ochoa Date: Wed, 20 Aug 2014 14:52:17 +0200 Subject: [PATCH] Change expected error code for backend crash. cartodb-psql 0.4.0 returns 500 error when it's not possible to connect to PostgreSQL. --- test/acceptance/backend_crash.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/acceptance/backend_crash.js b/test/acceptance/backend_crash.js index 022dd542..957a2339 100644 --- a/test/acceptance/backend_crash.js +++ b/test/acceptance/backend_crash.js @@ -46,7 +46,7 @@ test('does not hang server', function(done){ }, function checkResponse(err, res) { if ( err ) throw err; - assert.equal(res.statusCode, 400, res.statusCode + ': ' + res.body); + assert.equal(res.statusCode, 500, res.statusCode + ': ' + res.body); var parsed = JSON.parse(res.body); assert.ok(parsed.error); var msg = parsed.error[0]; @@ -65,7 +65,7 @@ test('does not hang server', function(done){ }, function checkResponse(err, res) { if ( err ) throw err; - assert.equal(res.statusCode, 400, res.statusCode + ': ' + res.body); + assert.equal(res.statusCode, 500, res.statusCode + ': ' + res.body); var parsed = JSON.parse(res.body); assert.ok(parsed.error); var msg = parsed.error[0];