From b514edcdf4747b2ebf00a97f89f310d6d4f090f5 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Thu, 23 Nov 2023 23:05:52 +0800 Subject: test: remove the pipe created by new_pipename() (#26173) --- test/functional/helpers.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/functional/helpers.lua') 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 -- cgit