Merge #123418: cmake-language-server: disable test timeouts
This commit is contained in:
commit
68ec6295ca
@ -16,11 +16,15 @@ buildPythonApplication rec {
|
||||
sha256 = "0vz7bjxkk0phjhz3h9kj6yr7wnk3g7lqmkqraa0kw12mzcfck837";
|
||||
};
|
||||
|
||||
# can be removed after v0.1.2
|
||||
patches = lib.optional stdenv.isDarwin (fetchpatch {
|
||||
url = "https://github.com/regen100/cmake-language-server/commit/0ec120f39127f25898ab110b43819e3e9becb8a3.patch";
|
||||
sha256 = "1xbmarvsvzd61fnlap4qscnijli2rw2iqr7cyyvar2jd87z6sfp0";
|
||||
});
|
||||
patches = [
|
||||
./disable-test-timeouts.patch
|
||||
] ++ lib.optionals stdenv.isDarwin [
|
||||
# can be removed after v0.1.2
|
||||
(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 New Issue
Block a user