From fa83e7cc0a5995c4867f11b165dcaf6dc907b0ae Mon Sep 17 00:00:00 2001 From: Gloria Hornero Date: Tue, 12 Dec 2023 16:17:31 +0100 Subject: [PATCH] fix --- .../scripts/run_cypress/parallel_serverless.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/x-pack/plugins/security_solution/scripts/run_cypress/parallel_serverless.ts b/x-pack/plugins/security_solution/scripts/run_cypress/parallel_serverless.ts index f32a190f64146..f3a7070aa7e33 100644 --- a/x-pack/plugins/security_solution/scripts/run_cypress/parallel_serverless.ts +++ b/x-pack/plugins/security_solution/scripts/run_cypress/parallel_serverless.ts @@ -583,10 +583,9 @@ ${JSON.stringify(cypressConfigFile, null, 2)} ---------------------------------------------- `); } + process.env.TEST_CLOUD_HOST_NAME = new URL(BASE_ENV_URL).hostname; if (isOpen) { - process.env.TEST_CLOUD_HOST_NAME = new URL(BASE_ENV_URL).hostname; - await cypress.open({ configFile: cypressConfigFilePath, config: {