tests: Call collectgarbage 3 time
Try to avoid a race condition when testing awful.layout
This commit is contained in:
parent
e83832f41a
commit
182f21b48a
|
@ -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!")
|
||||
|
|
Loading…
Reference in New Issue