reverted changing $https globally in the unit tests

Signed-off-by: Fabian Topfstedt <topfstedt@schneevonmorgen.com>
This commit is contained in:
Fabian Topfstedt 2018-12-06 09:01:08 +01:00
parent 1e31767b51
commit 6c46adf2b7

View file

@ -40,7 +40,7 @@ end
describe("Sticky", function()
before_each(function()
mock_ngx({ var = { location_path = "/", host = "test.com", https = "on" } })
mock_ngx({ var = { location_path = "/", host = "test.com" } })
end)
after_each(function()
@ -121,7 +121,7 @@ describe("Sticky", function()
assert.equal(payload.path, ngx.var.location_path)
assert.equal(payload.domain, ngx.var.host)
assert.equal(payload.httponly, true)
assert.equal(payload.secure, true)
assert.equal(payload.secure, false)
return true, nil
end,
get = function(k) return false end,