Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
test/bot
Browse files Browse the repository at this point in the history
  • Loading branch information
ashish-aesthisia committed Dec 26, 2023
1 parent 52337c7 commit fd2d29b
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions scripts/run_e2e_tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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)
})

0 comments on commit fd2d29b

Please sign in to comment.