                   expect(lineNumberStateForScreenRow(presenter, 6).decorationClasses).toEqual ['a', 'b']
                   expect(lineNumberStateForScreenRow(presenter, 7).decorationClasses).toBeNull()
 
-                waitsForStateToUpdateAsync presenter, -> marker1.setBufferRange([[2, 0], [4, 2]])
+                waitsForStateToUpdate presenter, -> marker1.setBufferRange([[2, 0], [4, 2]])
                 runs ->
                   expect(lineNumberStateForScreenRow(presenter, 1).decorationClasses).toBeNull()
                   expect(lineNumberStateForScreenRow(presenter, 2).decorationClasses).toEqual ['a']

            }

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

          blockDecoration1 = addBlockDecorationBeforeScreenRow(0)
          blockDecoration2 = addBlockDecorationBeforeScreenRow(1)

          waitsForStateToUpdate presenter, ->
            presenter.setBlockDecorationDimensions(blockDecoration1, 0, 30)
            presenter.setBlockDecorationDimensions(blockDecoration2, 0, 10)

