tests: Call collectgarbage 3 time

Try to avoid a race condition when testing awful.layout
This commit is contained in:
Emmanuel Lepage Vallee 2016-03-26 05:14:56 -04:00
parent e83832f41a
commit 182f21b48a
1 changed files with 1 additions and 0 deletions

View File

@ -29,6 +29,7 @@ local function collectable(a, b, c, d, e, f, g, h, last)
end
collectgarbage("collect")
collectgarbage("collect")
collectgarbage("collect")
-- Check if the table is now empty
for _, v in pairs(objs) do
print("Some object was not garbage collected!")