         advanceClock(completionDelay)
 
       waitsFor ->
-        autocompleteManager.displaySuggestions.calls.length is 1
+        autocompleteManager.displaySuggestions.calls.length is 2
 
       runs ->
         expect(editorView.querySelector('.autocomplete-plus')).not.toExist()
         editor.insertText(';')
 
       waitsFor ->
-        autocompleteManager.displaySuggestions.calls.length is 2
+        autocompleteManager.displaySuggestions.calls.length is 3
         advanceClock(completionDelay)
 
       runs ->


  describe 'when the gocode autocomplete-plus provider is enabled', ->

    fit 'displays suggestions from gocode', ->
      runs ->
        expect(provider).toBeDefined()
        expect(provider.getSuggestions).not.toHaveBeenCalled()

        expect(provider.getSuggestions).toHaveBeenCalled()
        expect(provider.getSuggestions.calls.length).toBe(1)
        expect(editorView.querySelector('.autocomplete-plus')).toExist()
        expect(editorView.querySelector('.autocomplete-plus span.word').innerHTML).toBe('<span class="character-match">P</span>rint(<span class="snippet-completion">a ...interface</span>)')
        expect(editorView.querySelector('.autocomplete-plus span.completion-label').innerHTML).toBe('func')
        editor.backspace()

    xit 'does not display suggestions when no gocode suggestions exist', ->
