Skip to content

Commit

Permalink
Remove the last remaining 'yield 100' calls in test_single_document.py
Browse files Browse the repository at this point in the history
We understand the problem now.
  • Loading branch information
rwols committed Apr 27, 2020
1 parent a24e022 commit b4a30f8
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions tests/test_single_document.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,17 +194,14 @@ def __run_formatting_test(
self.assertEquals(edited_content, ''.join(expected))

def __run_goto_test(self, response: list, text_document_request: str, subl_command_suffix: str) -> 'Generator':
yield 100
assert self.view
self.insert_characters(GOTO_CONTENT)
# Put the cursor back at the start of the buffer, otherwise is_at_word fails in goto.py.
self.view.sel().clear()
self.view.sel().add(sublime.Region(0, 0))
method = 'textDocument/{}'.format(text_document_request)
self.set_response(method, response)
yield 100
self.view.run_command('lsp_symbol_{}'.format(subl_command_suffix))
yield 100
yield from self.await_message(method)

def condition() -> bool:
Expand Down

0 comments on commit b4a30f8

Please sign in to comment.