diff --git a/test/regression/api/canary/admin/site.test.js b/test/regression/api/canary/admin/site.test.js index 38f23c54a4..5ba0653a70 100644 --- a/test/regression/api/canary/admin/site.test.js +++ b/test/regression/api/canary/admin/site.test.js @@ -8,8 +8,8 @@ describe('Config API', function () { let request; before(async function () { - await localUtils.startGhost(); - request = supertest.agent(config.get('url')); + const app = await localUtils.startGhost(); + request = supertest.agent(app); await localUtils.doAuth(request); }); diff --git a/test/utils/e2e-utils.js b/test/utils/e2e-utils.js index 6e8771ec39..aa0566d1f4 100644 --- a/test/utils/e2e-utils.js +++ b/test/utils/e2e-utils.js @@ -137,10 +137,6 @@ const restartModeGhostStart = async ({frontend}) => { limits.init(); }; -const bootGhost = async ({backend, frontend}) => { - ghostServer = await boot({backend, frontend}); -}; - // CASE: Ghost Server needs Starting // In this case we need to ensure that Ghost is started cleanly: // - ensure the DB is reset @@ -166,7 +162,11 @@ const freshModeGhostStart = async (options) => { await settingsService.init(); // Actually boot Ghost - await bootGhost(options); + ghostServer = await boot({ + backend: options.backend, + frontend: options.frontend, + server: options.server + }); // Wait for the URL service to be ready, which happens after boot if (options.frontend) {