mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
Delete os_delay unit test.
This commit is contained in:
committed by
Thiago de Arruda
parent
774f668c43
commit
f9d4b14f25
@@ -1,18 +0,0 @@
|
||||
{time: lua_time} = require 'os'
|
||||
{:cimport, :eq} = require 'test.unit.helpers'
|
||||
|
||||
time = cimport './src/os/time.h'
|
||||
|
||||
describe 'time function', ->
|
||||
setup ->
|
||||
time.time_init!
|
||||
|
||||
describe 'os_delay', ->
|
||||
os_delay = (ms) ->
|
||||
time.os_delay ms, false
|
||||
|
||||
it 'sleeps at least the number of requested milliseconds', ->
|
||||
curtime = lua_time!
|
||||
os_delay 1000
|
||||
ellapsed = lua_time! - curtime
|
||||
eq true, ellapsed >= 1 and ellapsed <=2
|
||||
Reference in New Issue
Block a user