]> git.ipfire.org Git - location/libloc.git/commitdiff
tests: lua: Set a variable to true if we are checking for a boolean later
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 26 Sep 2024 16:45:52 +0000 (16:45 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 26 Sep 2024 16:45:52 +0000 (16:45 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
tests/lua/main.lua.in

index a9a96d5198f4d2ee2a1c568fa3e5cd115ea78d98..f436a5e1f8bbcb8a981f54b7f6ab15bef1cb6464 100755 (executable)
@@ -33,7 +33,7 @@ end
 log_callback_called = 0
 
 function log_callback(level, message)
-       log_callback_called = 1
+       log_callback_called = true
        print("LOG " .. message)
 end