Fix database connection settings on template instanciation

Closes #174
Enhances testsuite to ensure test.js settings are read
This commit is contained in:
Sandro Santilli
2014-02-28 15:56:31 +01:00
parent cf0c33a85d
commit ddd2628c19
3 changed files with 18 additions and 0 deletions
+6
View File
@@ -10,6 +10,12 @@ var strftime = require('strftime');
var SQLAPIEmu = require(__dirname + '/../support/SQLAPIEmu.js');
var redis_stats_db = 5;
// Pollute the PG environment to make sure
// configuration settings are always enforced
// See https://github.com/CartoDB/Windshaft-cartodb/issues/174
process.env['PGPORT'] = '666';
process.env['PGHOST'] = 'fake';
require(__dirname + '/../support/test_helper');
var windshaft_fixtures = __dirname + '/../../node_modules/windshaft/test/fixtures';