diff options
| author | ruki <[email protected]> | 2020-02-04 00:58:36 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-02-07 22:45:56 +0800 |
| commit | 0c3f6069c16dbc7b6612fb792cbe6b990a7acef2 (patch) | |
| tree | dde9571fe643e4b70e4a52ba68762e815757655c /tests/modules/process/test.lua | |
| parent | ff45e17b26152544961e52671d61aa5f8e838d38 (diff) | |
remove scheduler.runloop in outside
Diffstat (limited to 'tests/modules/process/test.lua')
| -rw-r--r-- | tests/modules/process/test.lua | 5 |
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 |
