From 2b12b76a670740611037eac942e94474f6941817 Mon Sep 17 00:00:00 2001 From: Yegappan Lakshmanan Date: Mon, 17 Jan 2022 10:26:19 -0800 Subject: [PATCH] Increase the delay for the LSP server to respond --- test/unit_tests.vim | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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! -- 2.48.1