File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
testsuite/ada_lsp/configuration_warning_null_setting Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -41,8 +41,10 @@ async def main(lsp: ALSLanguageClient) -> None:
41
41
}
42
42
)
43
43
44
- # Wait for didChangeConfig to be handled
45
- await lsp .sleep (2 )
44
+ # We want to wait until the configuration change was handled before asserting test
45
+ # results. didChangeConfig is handled in "Fence" priority on the ALS side, so if we
46
+ # send any other request, it will be processed after the configuration change.
47
+ await lsp .getCurrentProject ()
46
48
47
49
total_log_msg = len (lsp .log_messages )
48
50
total_show_msg = len (lsp .messages )
@@ -52,8 +54,8 @@ async def main(lsp: ALSLanguageClient) -> None:
52
54
53
55
lsp .didChangeConfig ({"logThreshold" : None , "insertWithClauses" : None })
54
56
55
- # Wait for didChangeConfig to be handled
56
- await lsp .sleep ( 2 )
57
+ # Wait for didChangeConfig to be handled by sending any other request
58
+ await lsp .getCurrentProject ( )
57
59
58
60
# Check that no messages were sent after using None/null as the value for
59
61
# a setting
You can’t perform that action at this time.
0 commit comments