refactoring: use more specific var name

This commit is contained in:
Elvin Efendi 2020-03-21 21:21:52 -04:00
parent 8f4d5f8b34
commit eb112ea06c
2 changed files with 5 additions and 7 deletions

View file

@ -135,7 +135,7 @@ describe("Certificate", function()
local _ngx = { var = { host = "hostname" } }
setmetatable(_ngx, {__index = _G.ngx})
_G.ngx = _ngx
ngx.ctx.configured_for_current_request = nil
ngx.ctx.cert_configured_for_current_request = nil
set_certificate("hostname", EXAMPLE_CERT, UUID)
end)
@ -150,7 +150,7 @@ describe("Certificate", function()
end)
it("returns cached value from ngx.ctx", function()
ngx.ctx.configured_for_current_request = false
ngx.ctx.cert_configured_for_current_request = false
assert.is_false(certificate.configured_for_current_request())
end)
end)