neovim

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

commit 6da968dd7f9d541a83e6158f698f30f9589ae0c1
parent bfe9fa0f8e937a4172d6fabfa209633c9f160698
Author: zeertzjq <zeertzjq@outlook.com>
Date:   Tue, 20 Jan 2026 14:57:10 +0800

test(core/server_spec): check error in logfile (#37469)


Diffstat:
Mtest/functional/core/server_spec.lua | 9++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/test/functional/core/server_spec.lua b/test/functional/core/server_spec.lua @@ -256,8 +256,15 @@ describe('server', function() -- Second instance should fail without removing live socket local result = n.exec_lua(function(sock) - return vim.system({ vim.v.progpath, '--headless', '--listen', sock }, { text = true }):wait() + return vim + .system( + { vim.v.progpath, '--headless', '--listen', sock }, + { text = true, env = { NVIM_LOG_FILE = testlog } } + ) + :wait() end, socket_path) + t.assert_log('Socket already in use by another Nvim instance: ', testlog, 100) + t.assert_log('Failed to start server: address already in use: ', testlog, 100) neq(0, result.code) matches('Failed.*listen', result.stderr)