summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorruki <[email protected]>2019-12-11 00:47:14 +0800
committerruki <[email protected]>2019-12-10 22:43:27 +0800
commitbffe4246267d83833234ec0a3819dd5c060687c2 (patch)
tree98db4cd2a5c04b2b75ec6dbfb5e11e5d15bb6211 /tests
parentb6dd6f29f65cab54cfbec2ec234c05abd8ab46bd (diff)
improve os.sleep to support scheduler
Diffstat (limited to 'tests')
-rw-r--r--tests/modules/scheduler/test.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/modules/scheduler/test.lua b/tests/modules/scheduler/test.lua
index 3e5cb83b1..cf87d2588 100644
--- a/tests/modules/scheduler/test.lua
+++ b/tests/modules/scheduler/test.lua
@@ -18,7 +18,7 @@ function test_sleep(t)
local count = 0
local task = function (a)
local dt = os.mclock()
- scheduler.sleep(500)
+ os.sleep(500)
dt = os.mclock() - dt
t:require(dt > 100 and dt < 1000)
count = count + 1