cleanup lua tests
This commit is contained in:
parent
fe9bb6bee5
commit
fcaf337b30
13 changed files with 4 additions and 67 deletions
|
|
@ -1,14 +1,6 @@
|
|||
package.path = "./rootfs/etc/nginx/lua/?.lua;./rootfs/etc/nginx/lua/test/mocks/?.lua;" .. package.path
|
||||
_G._TEST = true
|
||||
local defer = require('util.defer')
|
||||
local defer = require("util.defer")
|
||||
|
||||
local _ngx = {
|
||||
shared = {},
|
||||
log = function(...) end,
|
||||
get_phase = function() return "timer" end,
|
||||
}
|
||||
_G.ngx = _ngx
|
||||
|
||||
describe("Defer", function()
|
||||
describe("to_timer_phase", function()
|
||||
it("executes passed callback immediately if called on timer phase", function()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue