Skip to content

Commit

Permalink
tests(ci): provide more time to start for background server, and coll…
Browse files Browse the repository at this point in the history
…ect closed sockets (#2198)
  • Loading branch information
Tieske authored Mar 13, 2017
1 parent 97b9654 commit 0408462
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion spec/02-integration/05-proxy/09-balancer_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ local function http_server(timeout, count, port, ...)
end
}, timeout, count, port)

return thread:start(...)
local server = thread:start(...)
ngx.sleep(0.2) -- attempt to make sure server is started for failing CI tests
return server
end

dao_helpers.for_each_dao(function(kong_config)
Expand All @@ -85,6 +87,11 @@ dao_helpers.for_each_dao(function(kong_config)
config_db = nil
end)

before_each(function()
collectgarbage()
collectgarbage()
end)

describe("Balancing", function()
local client, api_client, upstream, target1, target2

Expand Down

0 comments on commit 0408462

Please sign in to comment.