diff --git a/test/e2e/launch.e2e.js b/test/e2e/launch.e2e.js index 49c6f03fd..a7af0b3a2 100644 --- a/test/e2e/launch.e2e.js +++ b/test/e2e/launch.e2e.js @@ -19,9 +19,10 @@ async function getPort () { describe('Application launch', function () { this.timeout(60000) let app = null + let closed = false afterEach(async function () { - if (app) { + if (app && !closed) { await app.close() } }) @@ -41,6 +42,10 @@ describe('Application launch', function () { } }) + app.on('close', () => { + closed = true + }) + return { app, repoPath, home } }