cleanup lua tests
This commit is contained in:
parent
fe9bb6bee5
commit
fcaf337b30
13 changed files with 4 additions and 67 deletions
|
|
@ -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")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue