fix: ensure we wait for the inspect to disconnect
This re-orders our node clean up so that we free the environment before the task runner is cleaned up as node uses the task runner during clean up. It also calls WaitForDisconnect() to ensure that inspector agents are notified that the context is going down.
This commit is contained in:
		
					parent
					
						
							
								60821c8ab0
							
						
					
				
			
			
				commit
				
					
						2132fdfa28
					
				
			
		
					 3 changed files with 10 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -390,6 +390,7 @@ describe('node feature', () => {
 | 
			
		|||
            const connection = new WebSocket(socketMatch[0])
 | 
			
		||||
            connection.onopen = () => {
 | 
			
		||||
              child.send('plz-quit')
 | 
			
		||||
              connection.close()
 | 
			
		||||
              done()
 | 
			
		||||
            }
 | 
			
		||||
          }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue