aboutsummaryrefslogtreecommitdiff
path: root/test/functional/plugin/lsp_spec.lua
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2023-01-31 13:08:46 +0100
committerbfredl <bjorn.linse@gmail.com>2023-01-31 13:15:23 +0100
commit50b256d51528fef068e07871e18aa3e324b7e2d8 (patch)
tree12f6992e050e5f3c43200b7f97f2db795ae16692 /test/functional/plugin/lsp_spec.lua
parentb649a96fc09fa7f18a988b0b0be5dadb54ad49de (diff)
downloadrneovim-50b256d51528fef068e07871e18aa3e324b7e2d8.tar.gz
rneovim-50b256d51528fef068e07871e18aa3e324b7e2d8.tar.bz2
rneovim-50b256d51528fef068e07871e18aa3e324b7e2d8.zip
fix(tests): use -l mode for lsp tests
This fixes "fake server" from leaking memory, which makes ASAN very upset, except on current ASAN CI for some reason.
Diffstat (limited to 'test/functional/plugin/lsp_spec.lua')
-rw-r--r--test/functional/plugin/lsp_spec.lua8
1 files changed, 3 insertions, 5 deletions
diff --git a/test/functional/plugin/lsp_spec.lua b/test/functional/plugin/lsp_spec.lua
index 5229022564..fd162961ff 100644
--- a/test/functional/plugin/lsp_spec.lua
+++ b/test/functional/plugin/lsp_spec.lua
@@ -46,16 +46,14 @@ describe('LSP', function()
local test_name = "basic_init"
exec_lua([=[
lsp = require('vim.lsp')
- local test_name, fixture_filename, logfile = ...
+ local test_name, fake_lsp_code, fake_lsp_logfile = ...
function test__start_client()
return lsp.start_client {
cmd_env = {
- NVIM_LOG_FILE = logfile;
+ NVIM_LOG_FILE = fake_lsp_logfile;
};
cmd = {
- vim.v.progpath, '-Es', '-u', 'NONE', '--headless',
- "-c", string.format("lua TEST_NAME = %q", test_name),
- "-c", "luafile "..fixture_filename;
+ vim.v.progpath, '-l', fake_lsp_code, test_name;
};
workspace_folders = {{
uri = 'file://' .. vim.loop.cwd(),