Use mocha hooks to create server just before perform the test

This commit is contained in:
Daniel García Aubert
2018-04-16 16:16:23 +02:00
parent 98f29f945b
commit 817afb13d1
32 changed files with 205 additions and 65 deletions
+7 -2
View File
@@ -9,8 +9,13 @@ var serverOptions = require('../../../lib/cartodb/server_options');
var LayergroupToken = require('../../../lib/cartodb/models/layergroup-token');
describe('get requests with cache headers', function() {
var server = new CartodbWindshaft(serverOptions);
server.setMaxListeners(0);
var server;
before(function () {
server = new CartodbWindshaft(serverOptions);
server.setMaxListeners(0);
});
var keysToDelete;
beforeEach(function() {