mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
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.
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user