summaryrefslogtreecommitdiff
path: root/tests/modules/thread
diff options
context:
space:
mode:
Diffstat (limited to 'tests/modules/thread')
-rw-r--r--tests/modules/thread/sleep.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/modules/thread/sleep.lua b/tests/modules/thread/sleep.lua
index 75586d615..1890278b3 100644
--- a/tests/modules/thread/sleep.lua
+++ b/tests/modules/thread/sleep.lua
@@ -10,8 +10,7 @@ end
function main()
for i = 1, 10 do
- -- TODO use thread.start and group
- thread.new(callback, {argv = {i}, name = "session_" .. i}):start()
+ thread.start_named("thread_" .. i, callback, i)
end
--thread.wait()
end