From 182f21b48a16bb09e6f0a4430df14c95cbac7364 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Sat, 26 Mar 2016 05:14:56 -0400 Subject: [PATCH] tests: Call collectgarbage 3 time Try to avoid a race condition when testing awful.layout --- tests/test-leaks.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test-leaks.lua b/tests/test-leaks.lua index d12d652e..77ea7b64 100644 --- a/tests/test-leaks.lua +++ b/tests/test-leaks.lua @@ -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!")