Check there is no unexepcted keys on redis after tests
This commit is contained in:
@@ -22,7 +22,7 @@ describe('tests from old api translated to multilayer', function() {
|
||||
// 'map_style|null|publicuser|my_table',
|
||||
redisClient.keys("map_style|*", function(err, matches) {
|
||||
redisClient.del(matches, function() {
|
||||
done();
|
||||
testHelper.deleteRedisKeys({ 'user:cartodb250user:mapviews:global': 5 }, done);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
require('../support/test_helper');
|
||||
var testHelper = require('../support/test_helper');
|
||||
|
||||
var assert = require('../support/assert');
|
||||
var qs = require('querystring');
|
||||
@@ -106,6 +106,13 @@ describe('get requests x-cache-channel', function() {
|
||||
|
||||
describe('header should be present', function() {
|
||||
|
||||
after(function(done) {
|
||||
testHelper.deleteRedisKeys({
|
||||
'map_cfg|a181ac96fac6d2b315dda88bc0bfa6cd': 0,
|
||||
'user:localhost:mapviews:global': 5
|
||||
}, done);
|
||||
});
|
||||
|
||||
it('/api/v1/map Map instantiation', function(done) {
|
||||
assert.response(
|
||||
server,
|
||||
|
||||
Reference in New Issue
Block a user