diff options
| author | ruki <[email protected]> | 2020-02-05 22:33:46 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-02-07 22:45:56 +0800 |
| commit | 69a092643d7725dce1f6fbf7b90ddb3e6f15370e (patch) | |
| tree | d86f3b08dddc1ec5b0b1dea0f8d035b9f1459dfb /tests | |
| parent | 35ffc50b1dc6abc88586ac1986607db16772c686 (diff) | |
uses runjobs instead of process.asyncrun
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/modules/scheduler/runjobs.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/modules/scheduler/runjobs.lua b/tests/modules/scheduler/runjobs.lua index 7fea9bf66..2686dd43f 100644 --- a/tests/modules/scheduler/runjobs.lua +++ b/tests/modules/scheduler/runjobs.lua @@ -14,5 +14,10 @@ function main() runjobs("test", _jobfunc, {total = 100, comax = 6, timeout = 1000, timer = function (running_jobs_indices) print("%s: timeout (%d ms), running: %s", scheduler.co_running(), os.mclock() - t, table.concat(running_jobs_indices, ",")) end}) + printf("testing .. ") + runjobs("test", function () + os.sleep(10000) + end, {showtips = true}) + print("ok") end |
