From 79233b1181406749ee8a5f0bf8e17192b15b2cfe Mon Sep 17 00:00:00 2001 From: Hannah Wolfe Date: Thu, 18 Nov 2021 15:29:35 +0000 Subject: [PATCH] Removed unnecessary load of settings - seems to save about a second locally for me - I'll take it! --- test/integration/importer/legacy.test.js | 2 +- test/integration/importer/v1.test.js | 2 +- test/integration/importer/v2.test.js | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/integration/importer/legacy.test.js b/test/integration/importer/legacy.test.js index 58e30224c7..b24e95e56a 100644 --- a/test/integration/importer/legacy.test.js +++ b/test/integration/importer/legacy.test.js @@ -10,7 +10,7 @@ const importOptions = { describe('Importer Legacy', function () { beforeEach(testUtils.teardownDb); - beforeEach(testUtils.setup('roles', 'owner', 'settings')); + beforeEach(testUtils.setup('roles', 'owner')); it('disallows importing Legacy imports', function () { const exportData = exportedBodyLegacy().db[0]; diff --git a/test/integration/importer/v1.test.js b/test/integration/importer/v1.test.js index f5c5915a9b..c71109a69a 100644 --- a/test/integration/importer/v1.test.js +++ b/test/integration/importer/v1.test.js @@ -11,7 +11,7 @@ const importOptions = { describe('Importer 1.0', function () { beforeEach(testUtils.teardownDb); - beforeEach(testUtils.setup('roles', 'owner', 'settings')); + beforeEach(testUtils.setup('roles', 'owner')); it('ensure amp field get\'s respected', function () { const exportData = exportedBodyV1().db[0]; diff --git a/test/integration/importer/v2.test.js b/test/integration/importer/v2.test.js index beafe2eb3e..65d337f58e 100644 --- a/test/integration/importer/v2.test.js +++ b/test/integration/importer/v2.test.js @@ -37,7 +37,7 @@ describe('Importer', function () { }); describe('Empty database (except of owner user), general tests', function () { - beforeEach(testUtils.setup('roles', 'owner', 'settings')); + beforeEach(testUtils.setup('roles', 'owner')); it('ensure return structure', function () { let exportData; @@ -1226,7 +1226,7 @@ describe('Importer', function () { describe('Existing database', function () { beforeEach(testUtils.teardownDb); - beforeEach(testUtils.setup('users:roles', 'posts', 'settings')); + beforeEach(testUtils.setup('users:roles', 'posts')); it('import multiple users, tags, posts', function () { const exportData = exportedBodyV2().db[0];