1
0
Fork 0

Fix runner test

This commit is contained in:
Chocobozzz 2023-10-11 15:13:54 +02:00
parent 678ae8abbd
commit fca58de835
No known key found for this signature in database
GPG key ID: 583A612D890159BE

View file

@ -1,5 +1,5 @@
import { ChildProcess, fork, ForkOptions } from 'child_process'
import { execa } from 'execa'
import { execaNode } from 'execa'
import { join } from 'path'
import { root } from '@peertube/peertube-node-utils'
import { PeerTubeServer } from '@peertube/peertube-server-commands'
@ -99,6 +99,6 @@ export class PeerTubeRunnerProcess {
}
private runCommand (path: string, args: string[]) {
return execa.node(path, args, { env: { ...process.env, NODE_OPTIONS: '' } })
return execaNode(path, args, { env: { ...process.env, NODE_OPTIONS: '' } })
}
}