diff --git a/rootfs/etc/nginx/lua/test/balancer/sticky_test.lua b/rootfs/etc/nginx/lua/test/balancer/sticky_test.lua index ed2040b20..478e431b8 100644 --- a/rootfs/etc/nginx/lua/test/balancer/sticky_test.lua +++ b/rootfs/etc/nginx/lua/test/balancer/sticky_test.lua @@ -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,