Merge #123418: cmake-language-server: disable test timeouts

This commit is contained in:
Vladimír Čunát 2021-05-22 16:14:15 +02:00
commit 68ec6295ca
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA
2 changed files with 22 additions and 5 deletions

View File

@ -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 \

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):