Restoring default ports for webhook tests (#612)

This commit is contained in:
jarek
2023-08-07 16:37:24 +02:00
committed by GitHub
parent 8bfba150b9
commit 7c114bf600
2 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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}