Check there is no unexepcted keys on redis after tests

This commit is contained in:
Raul Ochoa
2015-09-17 15:07:54 +02:00
parent 5428d3f0b0
commit 30cba053da
4 changed files with 78 additions and 16 deletions
+1 -1
View File
@@ -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);
});
});
});
+8 -1
View File
@@ -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,