From 8ee4e927a1d5507bf7041e775c341fceae3393af Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Mon, 17 Mar 2014 22:21:19 -0600 Subject: [PATCH] Unspy setTimeout in an attempt to fix flaky spec --- spec/pane-view-spec.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/pane-view-spec.coffee b/spec/pane-view-spec.coffee index e86fb750f..d58f6e2ef 100644 --- a/spec/pane-view-spec.coffee +++ b/spec/pane-view-spec.coffee @@ -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] = []