const forkOptions = {
silent: true,
env,
- detached: true,
+ detached: false,
execArgv
}
kill () {
if (!this.app) return Promise.resolve()
- process.kill(-this.app.pid)
+ process.kill(this.app.pid)
this.app = null
}
private randomServer () {
- const low = 10
+ const low = 2500
const high = 10000
return randomInt(low, high)