[CI > Test] Rewrite detection to work with login

This commit is contained in:
Ducko 2022-02-01 21:49:45 +00:00
parent 985effeed3
commit 6f0b17cb6d
1 changed files with 6 additions and 6 deletions

View File

@ -5,15 +5,15 @@ const test = () => {
let success = false;
proc.stderr.on('data', (data) => {
console.error(data.toString());
if (data.toString().includes('FAST CONNECT')) { // Main window JS running, startup success
success = true;
proc.kill();
}
console.error('stderr', data.toString());
});
proc.stdout.on('data', (data) => {
console.log(data.toString());
console.log('stdout', data.toString());
if (data.toString().includes('Installing discord_rpc')) {
success = true;
setTimeout(() => proc.kill(), 1000);
}
});
proc.on('close', async () => {