From fe98d566ebebed45fbcde529bd7a0c25197a5f3c Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Thu, 16 Jul 2020 15:37:05 +0100 Subject: [PATCH] fixing tests --- packages/server/src/api/routes/tests/couchTestUtils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/server/src/api/routes/tests/couchTestUtils.js b/packages/server/src/api/routes/tests/couchTestUtils.js index 17f096ec6b..86c3ee24f2 100644 --- a/packages/server/src/api/routes/tests/couchTestUtils.js +++ b/packages/server/src/api/routes/tests/couchTestUtils.js @@ -16,9 +16,9 @@ const TEST_CLIENT_ID = "test-client-id" exports.TEST_CLIENT_ID = TEST_CLIENT_ID exports.supertest = async () => { let request - let port = 4002 let server - server = await app(port) + process.env.PORT = 4002 + server = require("../../../app") request = supertest(server) return { request, server }