Skip to content

Commit a257583

Browse files
committed
Disable indexing in tests where it is not useful
1 parent 28643ff commit a257583

File tree

2 files changed

+14
-2
lines changed
  • testsuite/ada_lsp

2 files changed

+14
-2
lines changed

testsuite/ada_lsp/config_file/test.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,13 @@
2323
subprocess.check_call(["gprconfig", "--batch", "--config=Ada,,light,,GNAT"])
2424

2525

26-
@test()
26+
@test(
27+
als_settings={
28+
# Disable indexing to avoid wasting computation resources and risking test
29+
# timeouts
30+
"enableIndexing": False
31+
}
32+
)
2733
async def do_testing(lsp: ALSLanguageClient) -> None:
2834
# Set configuration file
2935
lsp.didChangeConfig(

testsuite/ada_lsp/configuration_warning_null_setting/test.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,13 @@
1818
]
1919

2020

21-
@test()
21+
@test(
22+
als_settings={
23+
# Disable indexing to avoid wasting computation resources and risking test
24+
# timeouts
25+
"enableIndexing": False
26+
}
27+
)
2228
async def main(lsp: ALSLanguageClient) -> None:
2329
# There is no config file
2430
lsp.didOpenVirtual()

0 commit comments

Comments
 (0)