cmake-language-server: disable test timeouts
This commit is contained in:
parent
83d907fd76
commit
935f82784b
2 changed files with 22 additions and 5 deletions
|
@ -16,11 +16,15 @@ buildPythonApplication rec {
|
|||
sha256 = "0vz7bjxkk0phjhz3h9kj6yr7wnk3g7lqmkqraa0kw12mzcfck837";
|
||||
};
|
||||
|
||||
patches = [
|
||||
./disable-test-timeouts.patch
|
||||
] ++ lib.optionals stdenv.isDarwin [
|
||||
# can be removed after v0.1.2
|
||||
patches = lib.optional stdenv.isDarwin (fetchpatch {
|
||||
(fetchpatch {
|
||||
url = "https://github.com/regen100/cmake-language-server/commit/0ec120f39127f25898ab110b43819e3e9becb8a3.patch";
|
||||
sha256 = "1xbmarvsvzd61fnlap4qscnijli2rw2iqr7cyyvar2jd87z6sfp0";
|
||||
});
|
||||
})
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
|
|
|
@ -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):
|
Loading…
Reference in a new issue