Skip to content

Commit

Permalink
feat: fix code
Browse files Browse the repository at this point in the history
  • Loading branch information
oowl committed Jul 14, 2024
1 parent 1cd4be2 commit 2323b1a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec/02-integration/05-proxy/24-buffered_spec.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
local helpers = require "spec.helpers"
local cjson = require "cjson"

local http_mock = require "spec.helpers.http_mock"

local md5 = ngx.md5
local TCP_PORT = helpers.get_available_port()
Expand Down Expand Up @@ -255,8 +255,8 @@ for _, strategy in helpers.each_strategy() do
-- to produce an nginx output filter error and status code 412
-- the response has to go through kong_error_handler (via error_page)
it("remains healthy when if-match header is used with buffering", function()
local thread = helpers.tcp_server(TCP_PORT)

mock = http_mock.new(TCP_PORT)
mock:start()
local res = assert(proxy_client:send {
method = "GET",
path = "/0",
Expand All @@ -265,9 +265,9 @@ for _, strategy in helpers.each_strategy() do
}
})

thread:join()
assert.response(res).has_status(412)
assert.logfile().has.no.line("exited on signal 11")
mock:stop(true)
end)
end)
end)
Expand Down

0 comments on commit 2323b1a

Please sign in to comment.