summaryrefslogtreecommitdiff
path: root/tests/modules/process/test.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tests/modules/process/test.lua')
-rw-r--r--tests/modules/process/test.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/modules/process/test.lua b/tests/modules/process/test.lua
index 15a1ef946..30a42fd99 100644
--- a/tests/modules/process/test.lua
+++ b/tests/modules/process/test.lua
@@ -25,9 +25,10 @@ function test_sched_process(t)
stderr:close()
count = count + 1
end
+ local cotasks = {}
for i = 1, 3 do
- scheduler.co_start(_session)
+ table.insert(cotasks, scheduler.co_start(_session))
end
- scheduler.runloop()
+ scheduler.co_waitexit(cotasks)
t:are_equal(count, 3)
end