mirror of
https://github.com/neovim/neovim.git
synced 2026-02-18 02:11:06 +10:00
test(lsp): wait up to 1 second to read messages
This commit is contained in:
committed by
Lewis Russell
parent
b614c15392
commit
3eb8a2784e
@@ -310,7 +310,12 @@ describe('semantic token highlighting', function()
|
||||
-- modify the buffer
|
||||
feed('o<ESC>')
|
||||
|
||||
local messages = exec_lua('return _G.server_full.messages')
|
||||
local messages = exec_lua(function()
|
||||
vim.wait(1000, function()
|
||||
return #_G.server_full.messages >= 4
|
||||
end)
|
||||
return _G.server_full.messages
|
||||
end)
|
||||
local called_full = 0
|
||||
local called_range = 0
|
||||
for _, m in ipairs(messages) do
|
||||
|
||||
Reference in New Issue
Block a user