enforced lua garbage collection full cycles in those shdict test cases to prevent memory leak false alarms.

This commit is contained in:
agentzh (章亦春) 2012-06-11 11:51:53 +08:00
Родитель f4ed28d2db
Коммит f3a3757c26
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -363,6 +363,7 @@ false expecting exactly two arguments, but only seen 1
--- config
location = /test {
content_by_lua '
collectgarbage("collect")
local dogs = ngx.shared.dogs
local res, err, forcible = dogs:set("foo", string.rep("helloworld", 10000))
ngx.say(res, " ", err, " ", forcible)
@ -631,6 +632,7 @@ hello
--- config
location = /test {
content_by_lua '
collectgarbage("collect")
local dogs = ngx.shared.dogs
dogs:set("bah", "hello")
local res, err, forcible = dogs:set("foo", string.rep("helloworld", 10000))