         editor.moveToBottom()
         editor.insertText('f')
         editor.insertText('b')
-        advanceClock(completionDelay + 1000)
+        advanceClock(completionDelay)
 
       waitsFor ->
         autocompleteManager.findSuggestions.calls.length is 2

      atom.workspace.open('sample.js').then (e) ->
        editor = e
        editorView = atom.views.getView(editor)

    runs ->
      workspaceElement = atom.views.getView(atom.workspace)
      jasmine.attachToDOM(workspaceElement)

    waitsForPromise ->
      atom.packages.activatePackage('language-javascript')

        editor.insertText('d')
        editor.insertText('o')

        advanceClock(completionDelay)

      waitsFor ->
        autocompleteManager.displaySuggestions.calls.length is 1
