diff options
Diffstat (limited to 'tests/modules/thread/sleep.lua')
| -rw-r--r-- | tests/modules/thread/sleep.lua | 4 |
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 |
