cmake-language-server: disable test timeouts

This commit is contained in:
Kira Bruneau 2021-05-17 18:34:28 -04:00
parent 83d907fd76
commit 935f82784b
2 changed files with 22 additions and 5 deletions

View file

@ -16,11 +16,15 @@ buildPythonApplication rec {
sha256 = "0vz7bjxkk0phjhz3h9kj6yr7wnk3g7lqmkqraa0kw12mzcfck837"; sha256 = "0vz7bjxkk0phjhz3h9kj6yr7wnk3g7lqmkqraa0kw12mzcfck837";
}; };
# can be removed after v0.1.2 patches = [
patches = lib.optional stdenv.isDarwin (fetchpatch { ./disable-test-timeouts.patch
url = "https://github.com/regen100/cmake-language-server/commit/0ec120f39127f25898ab110b43819e3e9becb8a3.patch"; ] ++ lib.optionals stdenv.isDarwin [
sha256 = "1xbmarvsvzd61fnlap4qscnijli2rw2iqr7cyyvar2jd87z6sfp0"; # can be removed after v0.1.2
}); (fetchpatch {
url = "https://github.com/regen100/cmake-language-server/commit/0ec120f39127f25898ab110b43819e3e9becb8a3.patch";
sha256 = "1xbmarvsvzd61fnlap4qscnijli2rw2iqr7cyyvar2jd87z6sfp0";
})
];
postPatch = '' postPatch = ''
substituteInPlace pyproject.toml \ substituteInPlace pyproject.toml \

View file

@ -0,0 +1,13 @@
diff --git a/tests/test_server.py b/tests/test_server.py
index c0777f5..1184fb3 100644
--- a/tests/test_server.py
+++ b/tests/test_server.py
@@ -11,7 +11,7 @@ from pygls.types import (CompletionContext, CompletionParams,
InitializeParams, Position, TextDocumentIdentifier,
TextDocumentItem, TextDocumentPositionParams)
-CALL_TIMEOUT = 2
+CALL_TIMEOUT = None
def _init(client: LanguageServer, root: Path):