Skip to content

Commit c608917

Browse files
committed
tests: added full GC cycle operations to avoid false positives in the "check leak" test mode.
1 parent 4b871b4 commit c608917

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

t/004-require.t

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ __DATA__
3535
location /load {
3636
content_by_lua '
3737
package.loaded.foo = nil;
38+
collectgarbage()
3839
local foo = require "foo";
3940
foo.hi()
4041
';

t/035-gmatch.t

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,7 @@ done
440440
location /main {
441441
content_by_lua '
442442
package.loaded.foo = nil
443+
collectgarbage()
443444
444445
local res = ngx.location.capture("/t")
445446
if res.status == 200 then

0 commit comments

Comments
 (0)