1
0
Fork 0

Fix tests

This commit is contained in:
Chocobozzz 2022-01-03 17:17:12 +01:00
parent 9270bd3a7e
commit 7298cad6ce
No known key found for this signature in database
GPG key ID: 583A612D890159BE

View file

@ -210,15 +210,17 @@ export class PeerTubeServer {
Object.assign(env, options.env) Object.assign(env, options.env)
} }
const execArgv = options.nodeArgs || []
execArgv.push('--enable-source-maps')
const forkOptions = { const forkOptions = {
silent: true, silent: true,
env, env,
detached: true, detached: true,
execArgv: options.nodeArgs || [] execArgv
} }
const peertubeArgs = options.peertubeArgs || [] const peertubeArgs = options.peertubeArgs || []
peertubeArgs.push('--enable-source-maps')
return new Promise<void>((res, rej) => { return new Promise<void>((res, rej) => {
const self = this const self = this