From 400e7166593a29914978c527800195767acb9c5c Mon Sep 17 00:00:00 2001 From: Fabian Topfstedt Date: Thu, 6 Dec 2018 09:01:08 +0100 Subject: [PATCH] reverted changing $https globally in the unit tests Signed-off-by: Fabian Topfstedt --- rootfs/etc/nginx/lua/test/balancer/sticky_test.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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,