From 2b5f56f2e25496a17d377b01f613aae63622bad1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9F=D1=80=D0=B5=D0=B4=D1=80=D0=B0=D0=B3=20=D0=9D=D0=B8?= =?UTF-8?q?=D0=BA=D0=BE=D0=BB=D0=B8=D1=9B?= Date: Fri, 12 Apr 2024 12:21:17 +0200 Subject: [PATCH] Revert "try a slightly different approach just to see... test pass locally" the test still fail on the CI This reverts commit 11c5ecbc82423bbcd8f08dc7243b3c20141a5fc7. --- tests/test_single_document.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/tests/test_single_document.py b/tests/test_single_document.py index b2988fb34..673f1842f 100644 --- a/tests/test_single_document.py +++ b/tests/test_single_document.py @@ -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')