From bb7ff6d53512a88bfd1801b3ddeca5f25e7c0ecc Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Mon, 5 Sep 2016 11:31:56 +0200 Subject: [PATCH] :art: --- spec/main-process/atom-application.test.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/spec/main-process/atom-application.test.js b/spec/main-process/atom-application.test.js index 408ea84ff..7fd68e038 100644 --- a/spec/main-process/atom-application.test.js +++ b/spec/main-process/atom-application.test.js @@ -223,9 +223,7 @@ describe('AtomApplication', function () { const window1 = atomApplication.launch(parseCommandLine([dirAPath, dirBPath])) await focusWindow(window1) - await new Promise(function (resolve) { - setTimeout(resolve, 1000) - }) + await timeoutPromise(1000) let treeViewPaths = await evalInWebContents(window1.browserWindow.webContents, function (sendBackToMainProcess) { sendBackToMainProcess(