[CI > Test] Rewrite detection to work with login
This commit is contained in:
		
							parent
							
								
									985effeed3
								
							
						
					
					
						commit
						6f0b17cb6d
					
				
					 1 changed files with 6 additions and 6 deletions
				
			
		|  | @ -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 () => { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue