fix: wait for the chromeProcess to exit, not close (#2838)

This commit is contained in:
Joel Einbinder 2018-07-04 16:36:49 -07:00 committed by Andrey Lushnikov
parent fb7c4e0984
commit 22fa00a7b3

View File

@ -133,7 +133,7 @@ class Launcher {
let chromeClosed = false; let chromeClosed = false;
const waitForChromeToClose = new Promise((fulfill, reject) => { const waitForChromeToClose = new Promise((fulfill, reject) => {
chromeProcess.once('close', () => { chromeProcess.once('exit', () => {
chromeClosed = true; chromeClosed = true;
// Cleanup as processes exit. // Cleanup as processes exit.
if (temporaryUserDataDir) { if (temporaryUserDataDir) {