From 7c51446e5eab2aa2b51eed59979eb21a91db84db Mon Sep 17 00:00:00 2001 From: Steven Date: Wed, 25 Mar 2020 18:42:37 -0400 Subject: [PATCH] [tests] Add additional env vars (#3968) These are used for testing and health checks. --- test/lib/deployment/now-deploy.js | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/test/lib/deployment/now-deploy.js b/test/lib/deployment/now-deploy.js index 8b2c7f7bc..1517d751b 100644 --- a/test/lib/deployment/now-deploy.js +++ b/test/lib/deployment/now-deploy.js @@ -15,6 +15,7 @@ async function nowDeploy(bodies, randomness) { mode: path.extname(n) === '.sh' ? 0o100755 : 0o100644, })); + const { FORCE_BUILD_IN_REGION, NOW_DEBUG } = process.env; const nowJson = JSON.parse(bodies['now.json']); const nowDeployPayload = { @@ -25,6 +26,8 @@ async function nowDeploy(bodies, randomness) { env: { ...(nowJson.build || {}).env, RANDOMNESS_BUILD_ENV_VAR: randomness, + FORCE_BUILD_IN_REGION, + NOW_DEBUG, }, }, name: 'test2020', @@ -34,16 +37,6 @@ async function nowDeploy(bodies, randomness) { meta: {}, }; - if (process.env.FORCE_BUILD_IN_REGION) { - const { builds = [] } = nowDeployPayload; - builds.forEach(b => { - if (!b.config) { - b.config = {}; - } - b.config.forceBuildIn = process.env.FORCE_BUILD_IN_REGION; - }); - } - console.log(`posting ${files.length} files`); for (const { file: filename } of files) {