From 0c3f6069c16dbc7b6612fb792cbe6b990a7acef2 Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 4 Feb 2020 00:58:36 +0800 Subject: remove scheduler.runloop in outside --- tests/modules/process/test.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests/modules/process/test.lua') 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 -- cgit v1.3.1