diff options
| author | ruki <[email protected]> | 2019-12-11 00:47:14 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-12-10 22:43:27 +0800 |
| commit | bffe4246267d83833234ec0a3819dd5c060687c2 (patch) | |
| tree | 98db4cd2a5c04b2b75ec6dbfb5e11e5d15bb6211 /tests | |
| parent | b6dd6f29f65cab54cfbec2ec234c05abd8ab46bd (diff) | |
improve os.sleep to support scheduler
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/modules/scheduler/test.lua | 2 |
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 |
