summaryrefslogtreecommitdiff
path: root/tests/modules/async
diff options
context:
space:
mode:
authorruki <[email protected]>2025-03-27 22:49:41 +0800
committerruki <[email protected]>2025-04-08 15:31:55 +0800
commit8beb0732ff716cd5b3d7a40744b1d239302fdb4b (patch)
tree5baa79a9643e8d937efbb375e8c6005481f7d98a /tests/modules/async
parent881671b9516d2e5b76436db1c9456aa02625ec52 (diff)
rename add_deps to add_orders
Diffstat (limited to 'tests/modules/async')
-rw-r--r--tests/modules/async/run_jobgraph.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/modules/async/run_jobgraph.lua b/tests/modules/async/run_jobgraph.lua
index bc1b5500f..9b8f529ed 100644
--- a/tests/modules/async/run_jobgraph.lua
+++ b/tests/modules/async/run_jobgraph.lua
@@ -18,7 +18,7 @@ function _test_basic()
jobs:add("job/" .. i, _jobfunc)
for j = 1, 50 do
jobs:add("job/" .. i .. "/" .. j, _jobfunc)
- jobs:add_deps("job/" .. i .. "/" .. j, "job/" .. i, "job/root")
+ jobs:add_orders("job/" .. i .. "/" .. j, "job/" .. i, "job/root")
end
end
t = os.mclock()
@@ -37,7 +37,7 @@ function _test_group()
jobs:add("job/" .. i .. "/" .. j, _jobfunc, {groups = "foo"})
end
end
- jobs:add_deps("foo", "bar", "job/root")
+ jobs:add_orders("foo", "bar", "job/root")
t = os.mclock()
runjobs("test", jobs, {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, ","))