enforced lua garbage collection full cycles in those shdict test cases to prevent memory leak false alarms.
This commit is contained in:
Родитель
f4ed28d2db
Коммит
f3a3757c26
|
@ -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))
|
||||
|
|
Загрузка…
Ссылка в новой задаче