Skip to content

Commit cced78c

Browse files
authored
Merge pull request #861 from krassowski/fix-flaky-completion-test
Fix flaky completion tests
2 parents 26cb8fb + 6a215ec commit cced78c

File tree

5 files changed

+11
-4
lines changed

5 files changed

+11
-4
lines changed

atest/05_Features/Completion.robot

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,11 @@ Completes Correctly With R Double And Triple Colon
295295
[Setup] Prepare File for Editing R completion completion.R
296296
Place Cursor In File Editor At 2 7
297297
Wait Until Fully Initialized
298+
# normally the completion adapter taking time to initialise is not a problem
299+
# but because the token-based completion fallback would break our test example
300+
# if it kicked off we try to avoid it by adding some delay
301+
# TODO remove sleep after migrating to JupyterLab 4.0 native adapters.
302+
Sleep 2s Workaround completion adapter taking some time to initialize
298303
Trigger Completer
299304
Completer Should Suggest .print.via.format
300305
Select Completer Suggestion .print.via.format
@@ -319,6 +324,8 @@ Shows Documentation With CompletionItem Resolve
319324
[Setup] Prepare File for Editing R completion completion.R
320325
Place Cursor In File Editor At 8 7
321326
Wait Until Fully Initialized
327+
# TODO remove sleep after migrating to JupyterLab 4.0 native adapters.
328+
Sleep 2s Workaround completion adapter taking some time to initialize
322329
Trigger Completer
323330
Completer Should Suggest print.data.frame
324331
# if data.frame is not active, activate it (it should be in top 10 on any platform)

python_packages/jupyter_lsp/jupyter_lsp/specs/julia_language_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ class JuliaLanguageServer(ShellSpec):
2424
issues="https://github.com/julia-vscode/LanguageServer.jl/issues",
2525
),
2626
install=dict(julia='using Pkg; Pkg.add("LanguageServer")'),
27-
config_schema=load_config_schema(key)
27+
config_schema=load_config_schema(key),
2828
)

python_packages/jupyter_lsp/jupyter_lsp/specs/pyright.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ class PyrightLanguageServer(NodeModuleSpec):
1919
yarn="yarn add --dev {}".format(key),
2020
jlpm="jlpm add --dev {}".format(key),
2121
),
22-
config_schema=load_config_schema(key)
22+
config_schema=load_config_schema(key),
2323
)

python_packages/jupyter_lsp/jupyter_lsp/specs/typescript_language_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,5 @@ class TypescriptLanguageServer(NodeModuleSpec):
3737
yarn="yarn add --dev {}".format(key),
3838
jlpm="jlpm add --dev {}".format(key),
3939
),
40-
config_schema=load_config_schema(key)
40+
config_schema=load_config_schema(key),
4141
)

scripts/lint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@
4040
ROBOCOP_EXCLUDES = [
4141
"empty-lines-between-sections",
4242
"file-too-long",
43-
"if-can-be-used",
4443
"missing-doc-keyword",
4544
"missing-doc-suite",
4645
"missing-doc-test-case",
46+
"todo-in-comment",
4747
"too-long-test-case",
4848
"too-many-arguments",
4949
"too-many-calls-in-keyword",

0 commit comments

Comments
 (0)