neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit da7877232894c6ea6f67d1ec35a0de6b53843a41
parent f0bf6d7647a4dabad0855d10bff63816b06eb24e
Author: zeertzjq <zeertzjq@outlook.com>
Date:   Mon,  8 Sep 2025 10:54:57 +0800

test(lsp): fix flakiness in inline completion test (#35676)

The flakiness happens because get() uses vim.schedule(), and a following
key may be processed before the scheduled event. Use poke_eventloop() to
ensure that the scheduled event is processed.
Diffstat:
Mtest/functional/plugin/lsp/inline_completion_spec.lua | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/test/functional/plugin/lsp/inline_completion_spec.lua b/test/functional/plugin/lsp/inline_completion_spec.lua @@ -181,6 +181,7 @@ describe('vim.lsp.inline_completion', function() exec_lua(function() vim.lsp.inline_completion.get() end) + n.poke_eventloop() feed('<Esc>') screen:expect({ grid = grid_applied_candidates }) end) @@ -267,6 +268,7 @@ describe('vim.lsp.inline_completion', function() exec_lua(function() vim.lsp.inline_completion.get() end) + n.poke_eventloop() feed('<Esc>') screen:expect([[ function fibonacci(n) { |