Remove redis keys after each test

This commit is contained in:
Raul Ochoa 2015-09-25 16:05:01 +02:00
parent ff94f9ca0c
commit cc0b482c7a

View File

@ -1,4 +1,4 @@
require('../../support/test_helper');
var testHelper = require('../../support/test_helper');
var assert = require('../../support/assert');
var fs = require('fs');
@ -63,6 +63,10 @@ describe('server', function() {
res_serv.close(done);
});
afterEach(function(done) {
testHelper.deleteRedisKeys({'user:localhost:mapviews:global': 5}, done);
});
////////////////////////////////////////////////////////////////////
//