neovim

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

commit ec24746406c4f02a6933e046a87b72d5129042a9
parent 1b013adff3e01c87ff1e165a9e9380fc9ee47d40
Author: zeertzjq <zeertzjq@outlook.com>
Date:   Mon, 23 Feb 2026 12:26:38 +0800

test(core/channels_spec): fix flaky test (#38025)

If the last nvim_eval arrives on RPC channel before rpc_close_event() is
processed, it will be scheduled immediately after rpc_close_event() and
before free_channel_event(), causing the test to fail.
Diffstat:
Mtest/functional/core/channels_spec.lua | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/test/functional/core/channels_spec.lua b/test/functional/core/channels_spec.lua @@ -524,6 +524,8 @@ describe('loopback', function() it('are released when closed', function() local chans = eval('len(nvim_list_chans())') command('call chanclose(chan)') + n.poke_eventloop() -- Process rpc_close_event(). + -- Channel has been released after processing free_channel_event(). eq(chans - 1, eval('len(nvim_list_chans())')) end) end)