aboutsummaryrefslogtreecommitdiff
path: root/tests/cancel.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cancel.lua')
-rw-r--r--tests/cancel.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/cancel.lua b/tests/cancel.lua
index 92ab439..42ae839 100644
--- a/tests/cancel.lua
+++ b/tests/cancel.lua
@@ -15,6 +15,7 @@ local SLEEP = function(...)
15 local lanes = require "lanes" 15 local lanes = require "lanes"
16 local k, v = lanes.sleep(...) 16 local k, v = lanes.sleep(...)
17 assert(k == nil and v == "timeout") 17 assert(k == nil and v == "timeout")
18 return true
18 end 19 end
19 local sleeper = lanes.gen("*", sleeperBody)(...) 20 local sleeper = lanes.gen("*", sleeperBody)(...)
20 -- then wait for the lane to terminate 21 -- then wait for the lane to terminate