Tweak test again for travis

Signed-off-by: Nathan Sobo <nathan@github.com>
This commit is contained in:
Max Brunsfeld
2016-09-19 11:02:48 -07:00
committed by Nathan Sobo
parent 7bba3e86b2
commit 511fe1a576

View File

@@ -310,6 +310,8 @@ describe('AtomApplication', function () {
fs.symlinkSync(packagePath, path.join(packagesDirPath, 'package-with-directory-provider'))
const atomApplication = buildAtomApplication()
atomApplication.config.set('core.disabledPackages', ['fuzzy-finder'])
const newRemoteFilePath = 'remote://server:3437/some/directory/path'
const window = atomApplication.launch(parseCommandLine([newRemoteFilePath]))
await focusWindow(window)
@@ -320,10 +322,7 @@ describe('AtomApplication', function () {
assert.deepEqual(projectPaths, [newRemoteFilePath])
await window.saveState()
await new Promise((resolve) => {
window.browserWindow.once('window:loaded', resolve)
window.reload()
})
await window.reload()
projectPaths = await evalInWebContents(window.browserWindow.webContents, function (sendBackToMainProcess) {
sendBackToMainProcess(atom.project.getPaths())