Skip to content

Commit

Permalink
try a slightly different approach just to see... test pass locally
Browse files Browse the repository at this point in the history
  • Loading branch information
predragnikolic committed Apr 12, 2024
1 parent b5ee72e commit 11c5ecb
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions tests/test_single_document.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,15 +382,11 @@ def get_test_name(cls) -> str:

def test_did_change_before_did_close(self) -> 'Generator':
assert self.view
self.view.window().run_command("chain", {
"commands": [
["insert", {"characters": "TEST"}],
["save", {"async": False}],
["close", {}]
]
})
self.insert_characters("TEST")
self.view.window().run_command("save", {'async': False})
self.view.window().run_command("close", {})
yield from self.await_message('textDocument/didChange')
# yield from self.await_message('textDocument/didSave') # TODO why is this not sent?
yield from self.await_message('textDocument/didSave')
yield from self.await_message('textDocument/didClose')


Expand Down

0 comments on commit 11c5ecb

Please sign in to comment.