Remove redis client
This commit is contained in:
parent
36efc359f7
commit
db8ab80bef
@ -1,7 +1,6 @@
|
||||
require('../../support/test_helper');
|
||||
var testHelper = require('../../support/test_helper');
|
||||
|
||||
var assert = require('../../support/assert');
|
||||
var redis = require('redis');
|
||||
var step = require('step');
|
||||
var FastlyPurge = require('fastly-purge');
|
||||
var _ = require('underscore');
|
||||
@ -12,8 +11,6 @@ var CartodbWindshaft = require(__dirname + '/../../../lib/cartodb/server');
|
||||
|
||||
describe('templates surrogate keys', function() {
|
||||
|
||||
var redisClient = redis.createClient(global.environment.redis.port);
|
||||
|
||||
var serverOptions = require('../../../lib/cartodb/server_options');
|
||||
|
||||
// Enable Varnish purge for tests
|
||||
@ -187,14 +184,7 @@ describe('templates surrogate keys', function() {
|
||||
if ( err ) {
|
||||
return done(err);
|
||||
}
|
||||
redisClient.keys("map_*|localhost", function(err, keys) {
|
||||
if ( err ) {
|
||||
return done(err);
|
||||
}
|
||||
redisClient.del(keys, function(err) {
|
||||
return done(err);
|
||||
});
|
||||
});
|
||||
testHelper.deleteRedisKeys({'map_tpl|localhost': 0}, done);
|
||||
}
|
||||
);
|
||||
});
|
||||
@ -322,14 +312,7 @@ describe('templates surrogate keys', function() {
|
||||
if ( err ) {
|
||||
return done(err);
|
||||
}
|
||||
redisClient.keys("map_*|localhost", function(err, keys) {
|
||||
if ( err ) {
|
||||
return done(err);
|
||||
}
|
||||
redisClient.del(keys, function(err) {
|
||||
return done(err);
|
||||
});
|
||||
});
|
||||
testHelper.deleteRedisKeys({'map_tpl|localhost': 0}, done);
|
||||
}
|
||||
);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user