cleanup lua tests

This commit is contained in:
Elvin Efendi 2018-07-21 22:36:05 -04:00
parent fe9bb6bee5
commit fcaf337b30
13 changed files with 4 additions and 67 deletions

View file

@ -1,17 +1,5 @@
package.path = "./rootfs/etc/nginx/lua/?.lua;./rootfs/etc/nginx/lua/test/mocks/?.lua;" .. package.path
local util = require("util")
local _ngx = {
shared = {
balancer_ewma = { flush_all = function() end },
balancer_ewma_last_touched_at = { flush_all = function() end }
},
log = function(...) end,
now = function() return os.time() end,
}
_G.ngx = _ngx
describe("Balancer ewma", function()
local balancer_ewma = require("balancer.ewma")