Fix tests

pull/4696/head
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
1 changed files with 4 additions and 2 deletions

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