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}