Skip to content

Commit

Permalink
Revert "try a slightly different approach just to see... test pass lo…
Browse files Browse the repository at this point in the history
…cally"

the test still fail on the CI

This reverts commit 11c5ecb.
  • Loading branch information
predragnikolic committed Apr 12, 2024
1 parent 11c5ecb commit 2b5f56f
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions tests/test_single_document.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,11 +382,15 @@ def get_test_name(cls) -> str:

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


Expand Down

0 comments on commit 2b5f56f

Please sign in to comment.