diff options
| author | ruki <[email protected]> | 2020-02-05 22:30:09 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-02-07 22:45:56 +0800 |
| commit | 35ffc50b1dc6abc88586ac1986607db16772c686 (patch) | |
| tree | eebc6439f8c37391d3e528feae7e3f09ce274bc8 /tests/modules | |
| parent | f48d5e6837c0039651385f409c8f3fc8188e086b (diff) | |
replace all runjobs
Diffstat (limited to 'tests/modules')
| -rw-r--r-- | tests/modules/scheduler/runjobs.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/modules/scheduler/runjobs.lua b/tests/modules/scheduler/runjobs.lua index 73398d179..7fea9bf66 100644 --- a/tests/modules/scheduler/runjobs.lua +++ b/tests/modules/scheduler/runjobs.lua @@ -11,8 +11,8 @@ end function main() local t = os.mclock() - runjobs("test", _jobfunc, 100, 6, 1000, function (running_jobs_indices) + 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) + end}) end |
