From fd2d29b0d1490476cac9bc558ecb980c0712912a Mon Sep 17 00:00:00 2001 From: Ashish Date: Tue, 26 Dec 2023 10:29:11 +0530 Subject: [PATCH] test/bot --- scripts/run_e2e_tests.ts | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/scripts/run_e2e_tests.ts b/scripts/run_e2e_tests.ts index 8f69785dc1..cc6b6bafd8 100644 --- a/scripts/run_e2e_tests.ts +++ b/scripts/run_e2e_tests.ts @@ -24,22 +24,19 @@ Ethereal Engine. All Rights Reserved. */ import childProcess from 'child_process' -import killPort from 'kill-port' - -import config from '@etherealengine/server-core/src/appconfig' // we may need an alternative to kill-port for mac & windows -const killports = () => { - killPort(config.server.port) - killPort(config.instanceserver.port) - killPort('3032') // todo, we should put this hardcoded val into env - killPort(process.env.CORS_SERVER_PORT) - killPort(process.env.VITE_APP_PORT) - killPort(process.env.LOCAL_STORAGE_PROVIDER_PORT) -} +// const killports = () => { +// killPort(config.server.port) +// killPort(config.instanceserver.port) +// killPort('3032') // todo, we should put this hardcoded val into env +// killPort(process.env.CORS_SERVER_PORT) +// killPort(process.env.VITE_APP_PORT) +// killPort(process.env.LOCAL_STORAGE_PROVIDER_PORT) +// } -killports() +// killports() const logOutput = (child) => { child.stdout.setEncoding('utf8') child.stdout.on('data', function (data) { @@ -65,7 +62,7 @@ devStack.on('exit', (exitCode) => { }) process.on('exit', (exitCode) => { console.log(`'npm run test-e2e' exited with exit code`, exitCode) - killports() + // killports() if (!lernaE2E.killed) lernaE2E.kill(exitCode) if (!devStack.killed) devStack.kill(exitCode) })