From b18bf967fdcee108d6ea8bda8eaeeb3a1def81a4 Mon Sep 17 00:00:00 2001 From: David M Date: Mon, 9 Oct 2017 18:27:57 +0200 Subject: [PATCH] Workaround lack of template creation clean-up --- test/acceptance/buffer-size-format.js | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/test/acceptance/buffer-size-format.js b/test/acceptance/buffer-size-format.js index b888e094..2366d035 100644 --- a/test/acceptance/buffer-size-format.js +++ b/test/acceptance/buffer-size-format.js @@ -135,15 +135,10 @@ describe('buffer size per format', function () { const originalUsePostGIS = serverOptions.renderer.mvt.usePostGIS; testCases.forEach(function (test) { var testFn = (usePostGIS) => { - before(function () { - serverOptions.renderer.mvt.usePostGIS = usePostGIS; - }); - after(function () { - serverOptions.renderer.mvt.usePostGIS = originalUsePostGIS; - }); - - it(test.desc, function (done) { + it(test.desc, function (done) { + serverOptions.renderer.mvt.usePostGIS = usePostGIS; this.testClient = new TestClient(test.mapConfig, 1234); + serverOptions.renderer.mvt.usePostGIS = originalUsePostGIS; var coords = test.coords; var options = { format: test.format, @@ -449,14 +444,11 @@ describe('buffer size per format for named maps w/o placeholders', function () { const originalUsePostGIS = serverOptions.renderer.mvt.usePostGIS; testCases.forEach(function (test) { var testFn = (usePostGIS) => { - before(function () { + it(test.desc + `(${usePostGIS? 'PostGIS':'mapnik'})`, function (done) { serverOptions.renderer.mvt.usePostGIS = usePostGIS; - }); - after(function () { - serverOptions.renderer.mvt.usePostGIS = originalUsePostGIS; - }); - it(test.desc, function (done) { + test.template.name += '_1'; this.testClient = new TestClient(test.template, 1234); + serverOptions.renderer.mvt.usePostGIS = originalUsePostGIS; var coords = test.coords; var options = { format: test.format,