Skip to content

Commit 9790823

Browse files
committed
test: decrease timeout for language server tests
1 parent 90e1f4f commit 9790823

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

Diff for: tests/robotcode/language_server/robotframework/parts/test_document_highlight.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ async def test(
4141
test_document,
4242
Position(line=data.line, character=data.character),
4343
),
44-
60,
44+
5,
4545
)
4646
regtest.write(
4747
yaml.dump(

Diff for: tests/robotcode/language_server/robotframework/parts/test_foldingrange.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ async def test(
7272
data: GeneratedTestData,
7373
) -> None:
7474
result = await asyncio.wait_for(
75-
run_coroutine_in_thread(protocol.robot_folding_ranges.collect, protocol.robot_folding_ranges, test_document), 60
75+
run_coroutine_in_thread(protocol.robot_folding_ranges.collect, protocol.robot_folding_ranges, test_document), 5
7676
)
7777

7878
regtest.write(yaml.dump({"data": data, "result": result}))

Diff for: tests/robotcode/language_server/robotframework/parts/test_goto_definition.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ async def test_definition(
4242
test_document,
4343
Position(line=data.line, character=data.character),
4444
),
45-
60,
45+
5,
4646
)
4747

4848
regtest.write(yaml.dump({"data": data, "result": split(result)}))

Diff for: tests/robotcode/language_server/robotframework/parts/test_goto_implementation.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ async def test_implementation(
6666
test_document,
6767
Position(line=data.line, character=data.character),
6868
),
69-
60,
69+
5,
7070
)
7171

7272
regtest.write(yaml.dump({"data": data, "result": split(result)}))

Diff for: tests/robotcode/language_server/robotframework/parts/test_hover.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ async def test(
5353
test_document,
5454
Position(line=data.line, character=data.character),
5555
),
56-
60,
56+
5,
5757
)
5858

5959
regtest.write(yaml.dump({"data": data, "result": split(result)}))

Diff for: tests/robotcode/language_server/robotframework/parts/test_references.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def split(location: Location) -> Location:
4949
Position(line=data.line, character=data.character),
5050
ReferenceContext(include_declaration=True),
5151
),
52-
60,
52+
5,
5353
)
5454
regtest.write(
5555
yaml.dump(

0 commit comments

Comments
 (0)