ML - Fixed a failing test (#13080)

* Fixed a failing test
This commit is contained in:
Leila Lali
2020-10-27 06:42:33 -07:00
committed by GitHub
parent eec6f64d62
commit f97ae9e570
2 changed files with 20 additions and 11 deletions

View File

@@ -17,10 +17,6 @@ export class ProcessService {
const scriptExecution = childProcess.spawn(exeFilePath, args);
let timer: NodeJS.Timeout;
let output: string = '';
scripts.forEach(script => {
scriptExecution.stdin.write(`${script}\n`);
});
scriptExecution.stdin.end();
// Add listeners to print stdout and stderr if an output channel was provided
@@ -55,6 +51,11 @@ export class ProcessService {
console.log(error);
}
}, this.timeout);
scripts.forEach(script => {
scriptExecution.stdin.write(`${script}\n`);
});
scriptExecution.stdin.end();
});
}