From: Yegappan Lakshmanan Date: Sat, 25 Mar 2023 18:53:57 +0000 (-0700) Subject: Increase the wait delay for the diags in the tests X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=f0e282ff82ac08881c4c76fe36a011cc6e4b660f;p=vim-lsp.git Increase the wait delay for the diags in the tests --- diff --git a/test/common.vim b/test/common.vim index 45ebe95..cbfd75e 100644 --- a/test/common.vim +++ b/test/common.vim @@ -124,7 +124,7 @@ enddef # Wait for the LSP server to load and process a file. This works by waiting # for a certain number of diagnostic messages from the server. def g:WaitForServerFileLoad(diagCount: number) - redraw! + :redraw! var waitCount = diagCount if waitCount == 0 # Introduce a temporary diagnostic diff --git a/test/tsserver_tests.vim b/test/tsserver_tests.vim index 4cd145c..68f5184 100644 --- a/test/tsserver_tests.vim +++ b/test/tsserver_tests.vim @@ -30,8 +30,9 @@ def g:Test_LspDiag() END setline(1, lines) - g:WaitForServerFileLoad(5) :redraw! + :sleep 3 + g:WaitForServerFileLoad(5) :LspDiagShow var qfl: list> = getloclist(0) assert_equal('quickfix', getwinvar(winnr('$'), '&buftype')) @@ -114,6 +115,8 @@ def g:Test_LspGoto() ] setline(1, lines) + :redraw! + :sleep 3 g:WaitForServerFileLoad(0) cursor(8, 1)