From 7c114bf600513b5969768b62bfae5ae6578b593d Mon Sep 17 00:00:00 2001 From: jarek Date: Mon, 7 Aug 2023 16:37:24 +0200 Subject: [PATCH] Restoring default ports for webhook tests (#612) --- test/server/lib/DocApi.ts | 2 +- test/server/lib/Webhooks-Proxy.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/server/lib/DocApi.ts b/test/server/lib/DocApi.ts index 303091ce..0f4aa16e 100644 --- a/test/server/lib/DocApi.ts +++ b/test/server/lib/DocApi.ts @@ -4359,7 +4359,7 @@ async function getWorkspaceId(api: UserAPIImpl, name: string) { return workspaces.find((w) => w.name === name)!.id; } -const webhooksTestPort = Number(process.env.WEBHOOK_TEST_PORT); +const webhooksTestPort = Number(process.env.WEBHOOK_TEST_PORT || 34365); async function setupDataDir(dir: string) { // we'll be serving Hello.grist content for various document ids, so let's make copies of it in diff --git a/test/server/lib/Webhooks-Proxy.ts b/test/server/lib/Webhooks-Proxy.ts index 55c81fd1..c59fde5b 100644 --- a/test/server/lib/Webhooks-Proxy.ts +++ b/test/server/lib/Webhooks-Proxy.ts @@ -51,8 +51,8 @@ function backupEnvironmentVariables() { }); } -const webhooksTestPort = Number(process.env.WEBHOOK_TEST_PORT); -const webhooksTestProxyPort = Number(process.env.WEBHOOK_TEST_PROXY_PORT); +const webhooksTestPort = Number(process.env.WEBHOOK_TEST_PORT || 34365); +const webhooksTestProxyPort = Number(process.env.WEBHOOK_TEST_PROXY_PORT || 22335); describe('Webhooks-Proxy', function () { // A testDir of the form grist_test_{USER}_{SERVER_NAME}