fix(lsp_spec): tests depended on previous session

backport #15803

- fix tests which accidentally depended on previous session
This commit is contained in:
Justin M. Keyes
2021-09-26 14:21:40 -07:00
parent 71950115eb
commit 5908d88a3e

View File

@@ -132,10 +132,6 @@ end
describe('LSP', function() describe('LSP', function()
before_each(function() before_each(function()
clear_notrace() clear_notrace()
end)
describe('server_name specified', function()
before_each(function()
-- Run an instance of nvim on the file which contains our "scripts". -- Run an instance of nvim on the file which contains our "scripts".
-- Pass TEST_NAME to pick the script. -- Pass TEST_NAME to pick the script.
local test_name = "basic_init" local test_name = "basic_init"
@@ -164,6 +160,7 @@ describe('LSP', function()
-- exec_lua("lsp.stop_all_clients(true)") -- exec_lua("lsp.stop_all_clients(true)")
end) end)
describe('server_name specified', function()
it('start_client(), stop_client()', function() it('start_client(), stop_client()', function()
retry(nil, 4000, function() retry(nil, 4000, function()
eq(1, exec_lua('return #lsp.get_active_clients()')) eq(1, exec_lua('return #lsp.get_active_clients()'))