diff options
Diffstat (limited to 'test/functional/lua/loop_spec.lua')
-rw-r--r-- | test/functional/lua/loop_spec.lua | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/functional/lua/loop_spec.lua b/test/functional/lua/loop_spec.lua index 38d6f1c24f..3bce30bffb 100644 --- a/test/functional/lua/loop_spec.lua +++ b/test/functional/lua/loop_spec.lua @@ -24,13 +24,11 @@ describe('vim.uv', function() exec_lua('vim.api.nvim_set_var("coroutine_cnt", 0)', {}) local code = [[ - local uv = vim.uv - local touch = 0 local function wait(ms) local this = coroutine.running() assert(this) - local timer = uv.new_timer() + local timer = vim.uv.new_timer() timer:start(ms, 0, vim.schedule_wrap(function () timer:close() touch = touch + 1 |