mirror of
https://github.com/neovim/neovim.git
synced 2025-12-08 07:32:40 +00:00
lsp/tests: Ensure client is stopped in basic_init tests (#13798)
This commit is contained in:
committed by
GitHub
parent
271cec291a
commit
459a6c845e
@@ -193,6 +193,12 @@ describe('LSP', function()
|
||||
end)
|
||||
|
||||
describe('basic_init test', function()
|
||||
after_each(function()
|
||||
stop()
|
||||
exec_lua("lsp.stop_client(lsp.get_active_clients())")
|
||||
exec_lua("lsp._vim_exit_handler()")
|
||||
end)
|
||||
|
||||
it('should run correctly', function()
|
||||
local expected_callbacks = {
|
||||
{NIL, "test", {}, 1};
|
||||
@@ -304,11 +310,9 @@ describe('LSP', function()
|
||||
}
|
||||
end)
|
||||
it('workspace/configuration returns NIL per section if client was started without config.settings', function()
|
||||
clear()
|
||||
fake_lsp_server_setup('workspace/configuration no settings')
|
||||
eq({
|
||||
NIL,
|
||||
NIL,
|
||||
}, exec_lua [[
|
||||
eq({ NIL, NIL, }, exec_lua [[
|
||||
local params = {
|
||||
items = {
|
||||
{section = 'foo'},
|
||||
|
||||
Reference in New Issue
Block a user