From f3a3757c2645c3e282e3af5cf1445582915676c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?agentzh=20=28=E7=AB=A0=E4=BA=A6=E6=98=A5=29?= Date: Mon, 11 Jun 2012 11:51:53 +0800 Subject: [PATCH] enforced lua garbage collection full cycles in those shdict test cases to prevent memory leak false alarms. --- t/043-shdict.t | 2 ++ 1 file changed, 2 insertions(+) diff --git a/t/043-shdict.t b/t/043-shdict.t index 490ac35e..04d72a3c 100644 --- a/t/043-shdict.t +++ b/t/043-shdict.t @@ -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))