]> Sergey Matveev's repositories - vim-lsp.git/commitdiff
Increase the wait delay for the diags in the tests
authorYegappan Lakshmanan <yegappan@yahoo.com>
Sat, 25 Mar 2023 18:53:57 +0000 (11:53 -0700)
committerYegappan Lakshmanan <yegappan@yahoo.com>
Sat, 25 Mar 2023 18:53:57 +0000 (11:53 -0700)
test/common.vim
test/tsserver_tests.vim

index 45ebe954afacc43d61eaac55d09217901d8c6a76..cbfd75e0f069f8b74fb8ca751c5fb3521c514848 100644 (file)
@@ -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
index 4cd145c3c642da2c26146f7ad065b614b9c1ee94..68f51845ef1638bc208cb344aae94f473c7bb958 100644 (file)
@@ -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<dict<any>> = 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)