Fix main process tests

This commit is contained in:
Michelle Tilley 2017-03-23 16:19:03 -07:00 committed by Katrina Uychaco
parent e80220ab1e
commit ed2c399997

View File

@ -367,6 +367,7 @@ describe('AtomApplication', function () {
const [app2Window1, app2Window2] = atomApplication2.launch(parseCommandLine([]))
await app2Window1.loadedPromise
await app2Window2.loadedPromise
await new Promise(resolve => setTimeout(resolve, 500)) // session restoration is async
assert.deepEqual(await getTreeViewRootDirectories(app2Window1), [tempDirPath1])
assert.deepEqual(await getTreeViewRootDirectories(app2Window2), [tempDirPath2])