From 46a4db758d1d86789984f6578b5c0e0ffe6858d5 Mon Sep 17 00:00:00 2001 From: Yegappan Lakshmanan Date: Wed, 19 Jan 2022 07:22:48 -0800 Subject: [PATCH] When running the tests, invoke Vim with the --not-a-term argument --- autoload/lspserver.vim | 4 ++-- test/run_tests.cmd | 2 +- test/run_tests.sh | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) 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 -- 2.48.1