File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 72
72
location / t {
73
73
content_by_lua ' ngx.say("foo")' ;
74
74
log_by_lua '
75
+ collectgarbage() -- to help leak testing
76
+
75
77
local logger = require "resty.logger.socket"
76
78
if not logger.initted() then
77
79
local ok, err = logger.init{
112
114
location / t {
113
115
content_by_lua ' ngx.say("foo")' ;
114
116
log_by_lua '
117
+ collectgarbage() -- to help leak testing
118
+
115
119
local logger = require "resty.logger.socket"
116
120
if not logger.initted() then
117
121
local ok, err = logger.init{
210
214
log_subrequest on;
211
215
location / t {
212
216
content_by_lua '
217
+ collectgarbage() -- to help leak testing
218
+
213
219
local res = ngx.location.capture("/main?c=1&d=2")
214
220
if res.status ~= 200 then
215
221
ngx.log(ngx.ERR, "capture /main failed")
262
268
log_subrequest on;
263
269
location / t {
264
270
content_by_lua '
271
+ collectgarbage() -- to help leak testing
272
+
265
273
local res = ngx.location.capture("/main?c=1&d=2")
266
274
if res.status ~= 200 then
267
275
ngx.log(ngx.ERR, "capture /main failed")
512
520
-- - config
513
521
location / t {
514
522
content_by_lua '
523
+ collectgarbage() -- to help leak testing
524
+
515
525
ngx.say("foo")
516
526
local logger = require "resty.logger.socket"
517
527
if not logger.initted() then
You can’t perform that action at this time.
0 commit comments