summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorruki <[email protected]>2023-09-12 23:07:33 +0800
committerruki <[email protected]>2023-09-12 23:07:33 +0800
commitedef4b17accd31b07ec0079d305e8f1be8d4fff9 (patch)
treea19d6dc6f760ff4dfedbabe17f0206abcab0cc65 /tests
parentf3f566ae6ffc126153af87c4056f29cfb4579105 (diff)
mark async.runjobs as public api
Diffstat (limited to 'tests')
-rw-r--r--tests/modules/scheduler/runjobs.lua2
-rw-r--r--tests/modules/scheduler/spinner.lua2
-rw-r--r--tests/modules/scheduler/test.lua2
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/modules/scheduler/runjobs.lua b/tests/modules/scheduler/runjobs.lua
index aea365241..d84f23152 100644
--- a/tests/modules/scheduler/runjobs.lua
+++ b/tests/modules/scheduler/runjobs.lua
@@ -1,6 +1,6 @@
import("core.base.scheduler")
import("private.async.jobpool")
-import("private.async.runjobs")
+import("async.runjobs")
function _jobfunc(index, total)
print("%s: run job (%d/%d)", scheduler.co_running(), index, total)
diff --git a/tests/modules/scheduler/spinner.lua b/tests/modules/scheduler/spinner.lua
index c48e7d5b7..8d20bf7b7 100644
--- a/tests/modules/scheduler/spinner.lua
+++ b/tests/modules/scheduler/spinner.lua
@@ -1,4 +1,4 @@
-import("private.async.runjobs")
+import("async.runjobs")
function main()
printf("testing .. ")
diff --git a/tests/modules/scheduler/test.lua b/tests/modules/scheduler/test.lua
index 0180d7f2e..2dd181433 100644
--- a/tests/modules/scheduler/test.lua
+++ b/tests/modules/scheduler/test.lua
@@ -48,7 +48,7 @@ function test_yield(t)
end
function test_runjobs(t)
- import("private.async.runjobs")
+ import("async.runjobs")
local total = 100
local comax = 6