]> git.ipfire.org Git - people/ms/libloc.git/commitdiff
lua: Force testing garbage collection for countries
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 22 Feb 2024 15:13:25 +0000 (15:13 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 22 Feb 2024 15:13:25 +0000 (15:13 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
tests/lua/main.lua

index 7349a80ac73c82b14cebb55cd262418a30586009..35c63331c3125bb762db4d6623a509bb671c8678 100755 (executable)
@@ -73,6 +73,9 @@ function test_country()
 
        c2 = location.Country.new("GB")
        luaunit.assertNotEquals(c1, c2)
+
+       c1 = nil
+       c2 = nil
 end
 
 -- This test is not very deterministic but should help to test the GC methods