test(client): check for uv.run() failure (#37379)

Related #37376
This commit is contained in:
zeertzjq
2026-01-14 08:00:37 +08:00
committed by GitHub
parent bb0f28f20b
commit dddc359213

View File

@@ -237,7 +237,10 @@ function Session:_run(request_cb, notification_cb, timeout)
self.eof_err = { 1, 'EOF was received from Nvim. Likely the Nvim process crashed.' .. stderr }
end)
uv.run()
local ret, err, _ = uv.run()
if ret == nil then
error(err)
end
self._prepare:stop()
self._timer:stop()
self._rpc_stream:read_stop()