fd=4をipcに使うように
This commit is contained in:
parent
9cc57cd011
commit
8119e4a467
|
@ -107,7 +107,7 @@ export function connectStream(user: any, channel: string, listener: (message: Re
|
|||
export function launchServer(callbackSpawnedProcess: (p: childProcess.ChildProcess) => void, moreProcess: () => Promise<void> = async () => {}) {
|
||||
return (done: (err?: Error) => any) => {
|
||||
const p = childProcess.spawn('node', [__dirname + '/../index.js'], {
|
||||
stdio: ['inherit', 'inherit', 'ipc'],
|
||||
stdio: ['inherit', 'inherit', 'inherit', 'ipc'],
|
||||
env: { NODE_ENV: 'test', PATH: process.env.PATH }
|
||||
});
|
||||
callbackSpawnedProcess(p);
|
||||
|
|
Loading…
Reference in New Issue