test: cleans up timertest formatting
authorThomas Harning Jr <harningt@gmail.com>
Thu, 12 Apr 2012 03:51:34 +0000 (11 23:51 -0400)
committerThomas Harning Jr <harningt@gmail.com>
Thu, 12 Apr 2012 03:51:34 +0000 (11 23:51 -0400)
CHANGELOG
test/timertest.lua

index 32967e0..f51fb63 100644 (file)
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+0.4.1 - WIP
+ * Cleans up timertest formatting
+======
 0.4.0 - 2012-04-10
  * Fixes buffer event tests to work with current bufferevent behavior
  * Fixed buffer event and related tests to be compatible with Lua 5.2
index 3261013..5cbf05e 100644 (file)
@@ -3,7 +3,14 @@ local core = require("luaevent.core")
 c = core.new()
 local f = 100
 local function createEvent()
-       return c:addevent(nil, core.EV_TIMEOUT, function(ev) io.write(".." .. f) f = f - 1 if f < 0 then return -1 end collectgarbage() end, 0.01)
+       return c:addevent(nil, core.EV_TIMEOUT, function(ev)
+               io.write(".." .. f)
+               f = f - 1
+               if f < 0 then
+                       return -1
+               end
+               collectgarbage()
+       end, 0.01)
 end
 ev = createEvent()
 print("TESTING Garbage-collect-safe version")