aboutsummaryrefslogtreecommitdiff
path: root/test/functional/lua
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2024-01-12 11:41:09 +0000
committerLewis Russell <lewis6991@gmail.com>2024-01-12 12:04:19 +0000
commit7a259d01aed52134a1675e47d9054ccad7ef7cbb (patch)
treeae3741677b97f408e589d55a3f7e5b863d1e1b58 /test/functional/lua
parentd33e1da9b7f7e886219cfdd20b9bbfaccdc43be9 (diff)
downloadrneovim-7a259d01aed52134a1675e47d9054ccad7ef7cbb.tar.gz
rneovim-7a259d01aed52134a1675e47d9054ccad7ef7cbb.tar.bz2
rneovim-7a259d01aed52134a1675e47d9054ccad7ef7cbb.zip
test: remove helpers.sleep()
Diffstat (limited to 'test/functional/lua')
-rw-r--r--test/functional/lua/highlight_spec.lua2
-rw-r--r--test/functional/lua/loader_spec.lua2
-rw-r--r--test/functional/lua/loop_spec.lua2
-rw-r--r--test/functional/lua/snippet_spec.lua2
4 files changed, 4 insertions, 4 deletions
diff --git a/test/functional/lua/highlight_spec.lua b/test/functional/lua/highlight_spec.lua
index 8e499f1e79..f304bec411 100644
--- a/test/functional/lua/highlight_spec.lua
+++ b/test/functional/lua/highlight_spec.lua
@@ -16,7 +16,7 @@ describe('vim.highlight.on_yank', function()
vim.highlight.on_yank({timeout = 10, on_macro = true, event = {operator = "y", regtype = "v"}})
vim.cmd('bwipeout!')
]])
- helpers.sleep(10)
+ vim.uv.sleep(10)
helpers.feed('<cr>') -- avoid hang if error message exists
eq('', eval('v:errmsg'))
end)
diff --git a/test/functional/lua/loader_spec.lua b/test/functional/lua/loader_spec.lua
index 92dd2296cb..cdb561330a 100644
--- a/test/functional/lua/loader_spec.lua
+++ b/test/functional/lua/loader_spec.lua
@@ -30,7 +30,7 @@ describe('vim.loader', function()
)
-- fs latency
- helpers.sleep(10)
+ vim.uv.sleep(10)
eq(
2,
diff --git a/test/functional/lua/loop_spec.lua b/test/functional/lua/loop_spec.lua
index e46dbe7455..38d6f1c24f 100644
--- a/test/functional/lua/loop_spec.lua
+++ b/test/functional/lua/loop_spec.lua
@@ -4,7 +4,7 @@ local Screen = require('test.functional.ui.screen')
local funcs = helpers.funcs
local meths = helpers.meths
local clear = helpers.clear
-local sleep = helpers.sleep
+local sleep = vim.uv.sleep
local feed = helpers.feed
local eq = helpers.eq
local eval = helpers.eval
diff --git a/test/functional/lua/snippet_spec.lua b/test/functional/lua/snippet_spec.lua
index defd13429e..bf73e6c6fd 100644
--- a/test/functional/lua/snippet_spec.lua
+++ b/test/functional/lua/snippet_spec.lua
@@ -7,7 +7,7 @@ local exec_lua = helpers.exec_lua
local feed = helpers.feed
local matches = helpers.matches
local pcall_err = helpers.pcall_err
-local sleep = helpers.sleep
+local sleep = vim.uv.sleep
describe('vim.snippet', function()
before_each(function()