tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
cmake-language-server: disable test timeouts
Kira Bruneau
4 years ago
935f8278
83d907fd
+22
-5
2 changed files
expand all
collapse all
unified
split
pkgs
development
tools
cmake-language-server
default.nix
disable-test-timeouts.patch
+9
-5
pkgs/development/tools/cmake-language-server/default.nix
···
16
sha256 = "0vz7bjxkk0phjhz3h9kj6yr7wnk3g7lqmkqraa0kw12mzcfck837";
17
};
18
19
-
# can be removed after v0.1.2
20
-
patches = lib.optional stdenv.isDarwin (fetchpatch {
21
-
url = "https://github.com/regen100/cmake-language-server/commit/0ec120f39127f25898ab110b43819e3e9becb8a3.patch";
22
-
sha256 = "1xbmarvsvzd61fnlap4qscnijli2rw2iqr7cyyvar2jd87z6sfp0";
23
-
});
0
0
0
0
24
25
postPatch = ''
26
substituteInPlace pyproject.toml \
···
16
sha256 = "0vz7bjxkk0phjhz3h9kj6yr7wnk3g7lqmkqraa0kw12mzcfck837";
17
};
18
19
+
patches = [
20
+
./disable-test-timeouts.patch
21
+
] ++ lib.optionals stdenv.isDarwin [
22
+
# can be removed after v0.1.2
23
+
(fetchpatch {
24
+
url = "https://github.com/regen100/cmake-language-server/commit/0ec120f39127f25898ab110b43819e3e9becb8a3.patch";
25
+
sha256 = "1xbmarvsvzd61fnlap4qscnijli2rw2iqr7cyyvar2jd87z6sfp0";
26
+
})
27
+
];
28
29
postPatch = ''
30
substituteInPlace pyproject.toml \
+13
pkgs/development/tools/cmake-language-server/disable-test-timeouts.patch
···
0
0
0
0
0
0
0
0
0
0
0
0
0
···
1
+
diff --git a/tests/test_server.py b/tests/test_server.py
2
+
index c0777f5..1184fb3 100644
3
+
--- a/tests/test_server.py
4
+
+++ b/tests/test_server.py
5
+
@@ -11,7 +11,7 @@ from pygls.types import (CompletionContext, CompletionParams,
6
+
InitializeParams, Position, TextDocumentIdentifier,
7
+
TextDocumentItem, TextDocumentPositionParams)
8
+
9
+
-CALL_TIMEOUT = 2
10
+
+CALL_TIMEOUT = None
11
+
12
+
13
+
def _init(client: LanguageServer, root: Path):