From aad9c244ead90ba767e41cc971812d469130f41f Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 8 Nov 2025 00:49:37 +0800 Subject: improve tests --- tests/modules/os/async_scheduler.lua | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) (limited to 'tests/modules/os') diff --git a/tests/modules/os/async_scheduler.lua b/tests/modules/os/async_scheduler.lua index d6818c9c5..0a201f8f7 100644 --- a/tests/modules/os/async_scheduler.lua +++ b/tests/modules/os/async_scheduler.lua @@ -23,17 +23,10 @@ function main() end scheduler.co_start(function () - local copydir = root .. "_copy" - os.cp(root, copydir, {async = true}) - assert(os.isdir(copydir)) - os.rm(copydir, {async = true}) - print("async copy complete: %s", copydir) + print("async find all files in programdir...") + local files = os.files(path.join(os.programdir(), "**"), {async = true}) + print("files: %d", #files) + print("async find all finished") end) end) - - scheduler.co_group_wait(group) - print("all async tasks finished") - os.rm(root, {async = true}) - print("async scheduler test finished") end - -- cgit v1.3.1