depot/third_party/nixpkgs/pkgs/development/tools/misc/cmake-language-server/disable-test-timeouts.patch
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

22 lines
647 B
Diff

diff --git a/tests/test_server.py b/tests/test_server.py
index e6cfe6e..3a3ee6a 100644
--- a/tests/test_server.py
+++ b/tests/test_server.py
@@ -31,7 +31,7 @@ from pygls.server import LanguageServer
from cmake_language_server.server import CMakeLanguageServer
-CALL_TIMEOUT = 2
+CALL_TIMEOUT = None
def _init(client: LanguageServer, root: Path) -> None:
@@ -115,7 +115,7 @@ def test_workspace_did_change_configuration(
)
start = time.monotonic()
- while server._api is old_api and (time.monotonic() - start) < CALL_TIMEOUT:
+ while server._api is old_api:
time.sleep(0.1)
assert server._api is not None