test: wait for uv.pipe_connect() callback (#37640)

Problem:
On Windows, writing to a pipe doesn't work if the pipe isn't connected
yet. This causes an RPC request to a session newly created by connect()
to hang, as it's waiting for a response to a request that never reaches
the server.

Solution:
Wait for uv.pipe_connect() callback to be called when using connect().
This commit is contained in:
zeertzjq
2026-02-01 08:14:12 +08:00
committed by GitHub
parent 270c7b46af
commit 77162a717a
6 changed files with 11 additions and 15 deletions

View File

@@ -73,7 +73,6 @@ describe('nvim_ui_attach()', function()
end)
it('does not crash if maximum UI count is reached', function()
t.skip(t.is_os('win'), 'n.connect() hangs on Windows')
local server = api.nvim_get_vvar('servername')
local screens = {} --- @type test.functional.ui.screen[]
for i = 1, 16 do