Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
catbro666 committed Sep 6, 2023
1 parent 91cb9c2 commit d49e8ee
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions spec/02-integration/05-proxy/18-upstream_tls_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,7 @@ for _, strategy in helpers.each_strategy() do
assert(proxy_client:close())

-- buffered_proxying
local res_cert_buffered
if subsystems == "http" then
local res = assert(proxy_client:send {
path = "/mtls-buffered-proxying",
Expand All @@ -438,7 +439,7 @@ for _, strategy in helpers.each_strategy() do
}
})
assert.res_status(200, res)
local res_cert = res.headers["X-Cert"]
res_cert_buffered = res.headers["X-Cert"]
assert(proxy_client:close())
end

Expand Down Expand Up @@ -470,6 +471,7 @@ for _, strategy in helpers.each_strategy() do
assert.not_equals(res_cert, res_cert2)

-- buffered_proxying
local res_cert2_buffered
if subsystems == "http" then
res = assert(proxy_client2:send {
path = "/mtls-buffered-proxying",
Expand All @@ -478,8 +480,8 @@ for _, strategy in helpers.each_strategy() do
}
})
assert.res_status(200, res)
local res_cert2 = res.headers["X-Cert"]
assert.not_equals(res_cert, res_cert2)
res_cert2_buffered = res.headers["X-Cert"]
assert.not_equals(res_cert_buffered, res_cert2_buffered)
end

-- restore old
Expand Down Expand Up @@ -869,8 +871,7 @@ for _, strategy in helpers.each_strategy() do
if subsystems == "http" then
helpers.wait_until(function()
local proxy_client = get_proxy_client(subsystems, 19001)
local err
res, err = proxy_client:send {
res = proxy_client:send {
path = "/tls-buffered-proxying",
headers = {
["Host"] = "example.com",
Expand Down Expand Up @@ -1024,7 +1025,7 @@ for _, strategy in helpers.each_strategy() do
if subsystems == "http" then
helpers.wait_until(function()
local proxy_client = get_proxy_client(subsystems, 19001)
local res, err = proxy_client:send {
local res = proxy_client:send {
path = "/tls-buffered-proxying",
headers = {
["Host"] = "example.com",
Expand Down

0 comments on commit d49e8ee

Please sign in to comment.