Remove redis keys after each test

This commit is contained in:
Raul Ochoa
2015-09-25 14:51:21 +02:00
parent 8ecf2e10c8
commit 8cd25dbd4f

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');
@@ -59,6 +59,10 @@ describe('regressions', function() {
res_serv.close(done);
});
afterEach(function(done) {
testHelper.deleteRedisKeys({'user:localhost:mapviews:global': 5}, done);
});
// See https://github.com/Vizzuality/Windshaft/issues/65
it("#65 catching non-Error exception doesn't kill the backend", function(done) {
var mapConfig = testClient.defaultTableMapConfig('test_table');