         waitsForPromise ->
           atom.workspace.open('atom://config').then (s) -> settingsView = s
 
-        waits 1
+        waitsFor (done) -> process.nextTick(done)
+
         runs ->
           expect(settingsView.activePanelName).toBe 'Settings'
 

        waitsForPromise ->
          atom.workspace.open('atom://config').then (s) -> settingsView = s

        waits 1
        runs ->
          expect(settingsView.activePanelName).toBe 'Settings'



      it "calls the dispose method on all panels", ->
        openWithCommand('settings-view:open')

        waitsFor (done) -> process.nextTick(done)

        runs ->
          settingsView = atom.workspace.getActivePaneItem()
          panels = [
