summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/modules/scheduler/runjobs.lua8
-rw-r--r--tests/modules/scheduler/spinner.lua10
2 files changed, 10 insertions, 8 deletions
diff --git a/tests/modules/scheduler/runjobs.lua b/tests/modules/scheduler/runjobs.lua
index 958a158e2..0742bbc2e 100644
--- a/tests/modules/scheduler/runjobs.lua
+++ b/tests/modules/scheduler/runjobs.lua
@@ -39,13 +39,5 @@ function main()
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, ","))
end})
-
- -- test tips
- print("==================================== test tips ====================================")
- printf("testing .. ")
- runjobs("test", function ()
- os.sleep(10000)
- end, {progress = true})
- print("ok")
end
diff --git a/tests/modules/scheduler/spinner.lua b/tests/modules/scheduler/spinner.lua
new file mode 100644
index 000000000..14b871c7e
--- /dev/null
+++ b/tests/modules/scheduler/spinner.lua
@@ -0,0 +1,10 @@
+import("private.async.runjobs")
+
+function main()
+ printf("testing .. ")
+ runjobs("test", function ()
+ os.sleep(10000)
+ end, {progress = true})
+ print("ok")
+end
+