summaryrefslogtreecommitdiff
path: root/tests/modules/thread/sleep.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2025-04-16 22:41:21 +0800
committerruki <[email protected]>2025-08-28 11:35:53 +0800
commit28e35d67e2cf08069c971c2235845389143b5f0e (patch)
tree79b494583b542484b2dc4753126e8954a93bd5e1 /tests/modules/thread/sleep.lua
parent8bf1576c641f3b68bb43c50929cdcec8ee73ff86 (diff)
bind native thread apis
Diffstat (limited to 'tests/modules/thread/sleep.lua')
-rw-r--r--tests/modules/thread/sleep.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/modules/thread/sleep.lua b/tests/modules/thread/sleep.lua
index 4dc350cd3..8d4c410f6 100644
--- a/tests/modules/thread/sleep.lua
+++ b/tests/modules/thread/sleep.lua
@@ -14,7 +14,7 @@ end
function main()
local t0 = thread.start_named("thread_0", callback, 0)
local t1 = thread.start_named("thread_1", callback, 1)
- thread.wait(t0, -1)
- thread.wait(t1, -1)
+ t0:wait(-1)
+ t1:wait(-1)
end