aboutsummaryrefslogtreecommitdiff
path: root/test/functional/helpers.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-11-23 23:05:52 +0800
committerGitHub <noreply@github.com>2023-11-23 23:05:52 +0800
commitb514edcdf4747b2ebf00a97f89f310d6d4f090f5 (patch)
treeb371ce35b39331886cfceba123fca868d5b0de94 /test/functional/helpers.lua
parentc126a3756a09716ed64fd2acb9eee5d411c4aa7b (diff)
downloadrneovim-b514edcdf4747b2ebf00a97f89f310d6d4f090f5.tar.gz
rneovim-b514edcdf4747b2ebf00a97f89f310d6d4f090f5.tar.bz2
rneovim-b514edcdf4747b2ebf00a97f89f310d6d4f090f5.zip
test: remove the pipe created by new_pipename() (#26173)
Diffstat (limited to 'test/functional/helpers.lua')
-rw-r--r--test/functional/helpers.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/functional/helpers.lua b/test/functional/helpers.lua
index 761e7dc522..dcaaa664b9 100644
--- a/test/functional/helpers.lua
+++ b/test/functional/helpers.lua
@@ -869,6 +869,9 @@ function module.new_pipename()
-- HACK: Start a server temporarily, get the name, then stop it.
local pipename = module.eval('serverstart()')
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
end