mirror of
https://github.com/neovim/neovim.git
synced 2025-11-06 18:54:24 +00:00
test: remove the pipe created by new_pipename() (#26173)
This commit is contained in:
@@ -869,6 +869,9 @@ function module.new_pipename()
|
|||||||
-- HACK: Start a server temporarily, get the name, then stop it.
|
-- HACK: Start a server temporarily, get the name, then stop it.
|
||||||
local pipename = module.eval('serverstart()')
|
local pipename = module.eval('serverstart()')
|
||||||
module.funcs.serverstop(pipename)
|
module.funcs.serverstop(pipename)
|
||||||
|
-- Remove the pipe so that trying to connect to it without a server listening
|
||||||
|
-- will be an error instead of a hang.
|
||||||
|
os.remove(pipename)
|
||||||
return pipename
|
return pipename
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -144,7 +144,6 @@ describe('--embed --listen UI', function()
|
|||||||
helpers.skip(helpers.is_os('win'))
|
helpers.skip(helpers.is_os('win'))
|
||||||
clear()
|
clear()
|
||||||
local child_server = assert(helpers.new_pipename())
|
local child_server = assert(helpers.new_pipename())
|
||||||
uv.fs_unlink(child_server)
|
|
||||||
funcs.jobstart({nvim_prog, '--embed', '--listen', child_server, '--clean'})
|
funcs.jobstart({nvim_prog, '--embed', '--listen', child_server, '--clean'})
|
||||||
retry(nil, nil, function() neq(nil, uv.fs_stat(child_server)) end)
|
retry(nil, nil, function() neq(nil, uv.fs_stat(child_server)) end)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user