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

                  expect(lineNumberStateForScreenRow(presenter, 6).decorationClasses).toEqual ['a', 'b']
                  expect(lineNumberStateForScreenRow(presenter, 7).decorationClasses).toBeNull()

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

                expect(lineStateForScreenRow(presenter, 6).decorationClasses).toEqual ['b']
                expect(lineStateForScreenRow(presenter, 7).decorationClasses).toBeNull()

              waitsForStateToUpdate presenter, -> decoration1.destroy()
              runs ->
                expect(lineStateForScreenRow(presenter, 2).decorationClasses).toBeNull()
                expect(lineStateForScreenRow(presenter, 3).decorationClasses).toBeNull()
