             expect(stateForCursor(presenter, 3)).toBeUndefined()
             expect(stateForCursor(presenter, 4)).toBeUndefined()
 
-          waitsForStateToUpdate2 presenter, ->
+          waitsForStateToUpdateAsync presenter, ->
             blockDecoration2.destroy()
             editor.setCursorBufferPosition([0, 0])
             editor.insertNewline()

                expect(lineNumberStateForScreenRow(presenter, 10).blockDecorationsHeight).toBe(0)
                expect(lineNumberStateForScreenRow(presenter, 11).blockDecorationsHeight).toBe(60)

              waitsForStateToUpdate presenter, ->
                blockDecoration1.getMarker().setHeadBufferPosition([1, 0])
                blockDecoration2.getMarker().setHeadBufferPosition([5, 0])
                blockDecoration3.getMarker().setHeadBufferPosition([9, 0])

          }

          # Change range
          waitsForStateToUpdateAsync presenter, -> marker.setBufferRange([[2, 13], [4, 6]])
          runs ->
            expectValues stateForOverlay(presenter, decoration), {
              item: item
