]> Sergey Matveev's repositories - vim-lsp.git/commitdiff
Increase the delay for the LSP server to respond
authorYegappan Lakshmanan <yegappan@yahoo.com>
Mon, 17 Jan 2022 18:26:19 +0000 (10:26 -0800)
committerYegappan Lakshmanan <yegappan@yahoo.com>
Mon, 17 Jan 2022 18:26:19 +0000 (10:26 -0800)
test/unit_tests.vim

index 3e9590c5e812e78551941a94f72e979b00a521a4..e5d7b289f03f31f2c725d070626305df03bafc75 100644 (file)
@@ -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! \<C-t>"
   assert_equal([24, 6], [line('.'), col('.')])
   :LspGotoDefinition
-  :sleep 500m
+  :sleep 1
   assert_equal([9, 12], [line('.'), col('.')])
   exe "normal! \<C-t>"
   assert_equal([24, 6], [line('.'), col('.')])
   :LspGotoImpl
-  :sleep 500m
+  :sleep 1
   assert_equal([15, 11], [line('.'), col('.')])
   exe "normal! \<C-t>"
   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!