diff options
author | Mathias Fußenegger <mfussenegger@users.noreply.github.com> | 2021-01-27 15:32:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-27 15:32:07 +0100 |
commit | 459a6c845e87662aa9aa0d6a0a68dc8d817a0498 (patch) | |
tree | 7de617bf35f8a2a4252f955f29e81417c1ee7185 /test/functional/plugin/lsp_spec.lua | |
parent | 271cec291aa732a0fbb11efef30c5d54c20beb73 (diff) | |
download | rneovim-459a6c845e87662aa9aa0d6a0a68dc8d817a0498.tar.gz rneovim-459a6c845e87662aa9aa0d6a0a68dc8d817a0498.tar.bz2 rneovim-459a6c845e87662aa9aa0d6a0a68dc8d817a0498.zip |
lsp/tests: Ensure client is stopped in basic_init tests (#13798)
Diffstat (limited to 'test/functional/plugin/lsp_spec.lua')
-rw-r--r-- | test/functional/plugin/lsp_spec.lua | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/test/functional/plugin/lsp_spec.lua b/test/functional/plugin/lsp_spec.lua index 41fdf845df..981e2a96a8 100644 --- a/test/functional/plugin/lsp_spec.lua +++ b/test/functional/plugin/lsp_spec.lua @@ -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'}, |