]> Sergey Matveev's repositories - vim-lsp.git/commitdiff
When running the tests, invoke Vim with the --not-a-term argument
authorYegappan Lakshmanan <yegappan@yahoo.com>
Wed, 19 Jan 2022 15:22:48 +0000 (07:22 -0800)
committerYegappan Lakshmanan <yegappan@yahoo.com>
Wed, 19 Jan 2022 15:22:48 +0000 (07:22 -0800)
autoload/lspserver.vim
test/run_tests.cmd
test/run_tests.sh

index c739389ebe7e514408ee83942afa740e12dc3925..e4b2b3763124c431844d883102292f4a7820a379 100644 (file)
@@ -282,11 +282,11 @@ enddef
 # Wait for a response message from the LSP server for the request "req"
 # Waits for a maximum of 5 seconds
 def s:waitForReponse(lspserver: dict<any>, req: dict<any>)
-  var maxCount: number = 500
+  var maxCount: number = 2500
   var key: string = req.id->string()
 
   while lspserver.requests->has_key(key) && maxCount > 0
-    sleep 10m
+    sleep 2m
     maxCount -= 1
   endwhile
 enddef
index 46ec369beb0c7a5e660fae58161a8c396bde70d8..192874c3669fc165ecc3ad60a3f8455fa7179b1f 100644 (file)
@@ -4,7 +4,7 @@ REM Script to run the unit-tests for the LSP Vim plugin on MS-Windows
 
 SETLOCAL
 SET VIMPRG="vim.exe"
-SET VIM_CMD=%VIMPRG% -u NONE -U NONE -i NONE --noplugin -N
+SET VIM_CMD=%VIMPRG% -u NONE -U NONE -i NONE --noplugin -N --not-a-term
 
 %VIM_CMD% -S unit_tests.vim
 
index 989b7f6af7f11f2be19670def0ce83118f079759..39d5cec35a06a6533e9187144a699d4f7fef27fb 100755 (executable)
@@ -3,7 +3,7 @@
 # Script to run the unit-tests for the LSP Vim plugin
 
 VIMPRG=${VIMPRG:=/usr/bin/vim}
-VIM_CMD="$VIMPRG -u NONE -U NONE -i NONE --noplugin -N"
+VIM_CMD="$VIMPRG -u NONE -U NONE -i NONE --noplugin -N --not-a-term"
 
 $VIM_CMD -S unit_tests.vim