fix(channel): possible hang after connecting with TCP times out (#37813)

Problem:  Possible hang after connecting with TCP times out.
Solution: Wait for the close callback to arrive.
This commit is contained in:
zeertzjq
2026-02-11 10:48:03 +08:00
committed by github-actions[bot]
parent 3a94763124
commit 7281cf883e
2 changed files with 16 additions and 9 deletions

View File

@@ -475,7 +475,6 @@ describe('channels', function()
end)
it('in "tcp" mode', function()
skip(not is_os('linux'), 'FIXME: hangs on non-Linux')
eq(
'Vim:connection failed: connection refused',
pcall_err(fn.sockconnect, 'tcp', '127.0.0.1:0')