Skip to content

Commit

Permalink
Revert "hotfix(tests) ensure bin/busted works on some platforms"
Browse files Browse the repository at this point in the history
This reverts commit 8874681.

Following the previous bump to OpenResty 1.15.8.1, we now leverage the
new `lua_sa_restart` directive (which is enable dby default) which sets
the `SA_RESTART` flag on signal handlers. This flag allows us to get rid
of this workaround.
  • Loading branch information
thibaultcha committed Jul 2, 2019
1 parent 5b1724c commit cda9558
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions bin/busted
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,6 @@

local DEFAULT_RESTY_FLAGS="-c 4096"

do
local lines = getmetatable(io.output()).lines

getmetatable(io.output()).lines = function(self, ...)
local iter = lines(self, ...)

return function()
local ok, ret = pcall(iter)
if ok then
return ret
end
end
end
end

if not os.getenv("KONG_BUSTED_RESPAWNED") then
-- initial run, so go update the environment
local script = {}
Expand Down

0 comments on commit cda9558

Please sign in to comment.