From 2a50d879992aceeea7f82f26634f707c0d2c425f Mon Sep 17 00:00:00 2001 From: Ash Wilson Date: Tue, 16 Apr 2019 15:59:08 -0400 Subject: [PATCH] Use a single application to launch all precondition windows --- spec/main-process/atom-application.new.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/main-process/atom-application.new.test.js b/spec/main-process/atom-application.new.test.js index 09bbd625f..e7f271543 100644 --- a/spec/main-process/atom-application.new.test.js +++ b/spec/main-process/atom-application.new.test.js @@ -149,12 +149,12 @@ class LaunchScenario { } async preconditions (source) { + const app = this.addApplication() const windowPromises = [] for (const windowSpec of this.parseWindowSpecs(source)) { const fullRootPaths = windowSpec.roots.map(rootPath => this.projectRootPool.get(rootPath)) const fullEditorPaths = windowSpec.editors.map(filePath => this.filePathPool.get(filePath)) - const app = this.addApplication() windowPromises.push((async (theApp, foldersToOpen, pathsToOpen) => { const window = await theApp.openPaths({ newWindow: true, foldersToOpen, pathsToOpen }) await emitterEventPromise(window, 'window:locations-opened')