From: Yegappan Lakshmanan Date: Wed, 19 Jan 2022 15:22:48 +0000 (-0800) Subject: When running the tests, invoke Vim with the --not-a-term argument X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=46a4db758d1d86789984f6578b5c0e0ffe6858d5;p=vim-lsp.git When running the tests, invoke Vim with the --not-a-term argument --- diff --git a/autoload/lspserver.vim b/autoload/lspserver.vim index c739389..e4b2b37 100644 --- a/autoload/lspserver.vim +++ b/autoload/lspserver.vim @@ -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, req: dict) - 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 diff --git a/test/run_tests.cmd b/test/run_tests.cmd index 46ec369..192874c 100644 --- a/test/run_tests.cmd +++ b/test/run_tests.cmd @@ -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 diff --git a/test/run_tests.sh b/test/run_tests.sh index 989b7f6..39d5cec 100755 --- a/test/run_tests.sh +++ b/test/run_tests.sh @@ -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