From: Yegappan Lakshmanan Date: Mon, 17 Jan 2022 18:26:19 +0000 (-0800) Subject: Increase the delay for the LSP server to respond X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=2b12b76a670740611037eac942e94474f6941817;p=vim-lsp.git Increase the delay for the LSP server to respond --- diff --git a/test/unit_tests.vim b/test/unit_tests.vim index 3e9590c..e5d7b28 100644 --- a/test/unit_tests.vim +++ b/test/unit_tests.vim @@ -420,20 +420,20 @@ def Test_lsp_goto_definition() } END setline(1, lines) - :sleep 500m + :sleep 1 cursor(24, 6) :LspGotoDeclaration - :sleep 500m + :sleep 1 assert_equal([6, 19], [line('.'), col('.')]) exe "normal! \" assert_equal([24, 6], [line('.'), col('.')]) :LspGotoDefinition - :sleep 500m + :sleep 1 assert_equal([9, 12], [line('.'), col('.')]) exe "normal! \" assert_equal([24, 6], [line('.'), col('.')]) :LspGotoImpl - :sleep 500m + :sleep 1 assert_equal([15, 11], [line('.'), col('.')]) exe "normal! \" assert_equal([24, 6], [line('.'), col('.')]) @@ -442,17 +442,17 @@ def Test_lsp_goto_definition() :messages clear cursor(14, 5) :LspGotoDeclaration - sleep 500m + sleep 1 var m = execute('messages')->split("\n") assert_equal('Error: declaration is not found', m[1]) :messages clear :LspGotoDefinition - sleep 500m + sleep 1 m = execute('messages')->split("\n") assert_equal('Error: definition is not found', m[1]) :messages clear :LspGotoImpl - sleep 500m + sleep 1 m = execute('messages')->split("\n") assert_equal('Error: implementation is not found', m[1]) :%bw!