Unspy setTimeout in an attempt to fix flaky spec

This commit is contained in:
Nathan Sobo 2014-03-17 22:21:19 -06:00
parent 857f19c382
commit 8ee4e927a1

View File

@ -159,14 +159,14 @@ describe "PaneView", ->
describe "when an unmodifed buffer's path is deleted", ->
it "removes the pane item", ->
jasmine.unspy(window, 'setTimeout')
filePath = temp.openSync('atom').path
editor = atom.project.openSync(filePath)
pane.activateItem(editor)
expect(pane.items).toHaveLength(5)
fs.removeSync(filePath)
waitsFor 30000, ->
pane.items.length == 4
waitsFor -> pane.items.length == 4
describe "when a pane is destroyed", ->
[pane2, pane2Model] = []