Remove redis keys after each test

This commit is contained in:
Raul Ochoa
2015-09-25 16:10:50 +02:00
parent 835d8c867e
commit 61cc14939b
+5 -1
View File
@@ -1,4 +1,4 @@
require('../../support/test_helper');
var testHelper = require('../../support/test_helper');
var assert = require('../../support/assert');
var testClient = require('./support/test_client');
@@ -37,6 +37,10 @@ describe('static_maps', function() {
httpRendererResourcesServer.close(done);
});
afterEach(function(done) {
testHelper.deleteRedisKeys({'user:localhost:mapviews:global': 5}, done);
});
function staticMapConfig(urlTemplate, cartocss) {
return {
version: '1.2.0',