This commit is contained in:
Antonio Scandurra
2016-09-05 11:31:56 +02:00
committed by Thomas Johansen
parent 905ba7becf
commit bb7ff6d535

View File

@@ -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(