Use env vars and fix tests
This commit is contained in:
@@ -16,7 +16,11 @@ describe('analysis-backend limits', function () {
|
||||
var user = 'localhost';
|
||||
|
||||
beforeEach(function () {
|
||||
redisClient = redis.createClient(global.environment.redis.port);
|
||||
redisClient = redis.createClient(
|
||||
{
|
||||
port: global.environment.redis.port,
|
||||
host: global.environment.redis.host
|
||||
});
|
||||
keysToDelete = {};
|
||||
var redisPool = new RedisPool(global.environment.redis);
|
||||
this.metadataBackend = cartodbRedis({ pool: redisPool });
|
||||
|
||||
@@ -30,7 +30,11 @@ describe('TemplateMaps limits', function () {
|
||||
};
|
||||
}
|
||||
|
||||
var redisClient = redis.createClient(global.environment.redis.port);
|
||||
var redisClient = redis.createClient(
|
||||
{
|
||||
port: global.environment.redis.port,
|
||||
host: global.environment.redis.host
|
||||
});
|
||||
var redisPool = new RedisPool(global.environment.redis);
|
||||
|
||||
afterEach(function (done) {
|
||||
|
||||
Reference in New Issue
Block a user