diff options
| author | Lewis Russell <lewis6991@gmail.com> | 2024-01-12 11:41:09 +0000 |
|---|---|---|
| committer | Lewis Russell <lewis6991@gmail.com> | 2024-01-12 12:04:19 +0000 |
| commit | 7a259d01aed52134a1675e47d9054ccad7ef7cbb (patch) | |
| tree | ae3741677b97f408e589d55a3f7e5b863d1e1b58 /test/functional/editor | |
| parent | d33e1da9b7f7e886219cfdd20b9bbfaccdc43be9 (diff) | |
| download | rneovim-7a259d01aed52134a1675e47d9054ccad7ef7cbb.tar.gz rneovim-7a259d01aed52134a1675e47d9054ccad7ef7cbb.tar.bz2 rneovim-7a259d01aed52134a1675e47d9054ccad7ef7cbb.zip | |
test: remove helpers.sleep()
Diffstat (limited to 'test/functional/editor')
| -rw-r--r-- | test/functional/editor/K_spec.lua | 4 | ||||
| -rw-r--r-- | test/functional/editor/completion_spec.lua | 4 | ||||
| -rw-r--r-- | test/functional/editor/ctrl_c_spec.lua | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/test/functional/editor/K_spec.lua b/test/functional/editor/K_spec.lua index 92a00b28b6..1107de7984 100644 --- a/test/functional/editor/K_spec.lua +++ b/test/functional/editor/K_spec.lua @@ -36,7 +36,7 @@ describe('K', function() end) eq({ 'fnord' }, eval("readfile('" .. test_file .. "')")) -- Confirm that Neovim is still in terminal mode after K is pressed (#16692). - helpers.sleep(500) + vim.uv.sleep(500) eq('t', eval('mode()')) feed('<space>') -- Any key, not just <space>, can be used here to escape. eq('n', eval('mode()')) @@ -50,7 +50,7 @@ describe('K', function() -- Confirm that an arbitrary keypress doesn't escape (i.e., the process is -- still running). If the process were no longer running, an arbitrary -- keypress would escape. - helpers.sleep(500) + vim.uv.sleep(500) feed('<space>') eq('t', eval('mode()')) -- Confirm that <esc> kills the buffer for the running command. diff --git a/test/functional/editor/completion_spec.lua b/test/functional/editor/completion_spec.lua index fbb63fdba6..c13222bd7a 100644 --- a/test/functional/editor/completion_spec.lua +++ b/test/functional/editor/completion_spec.lua @@ -691,7 +691,7 @@ describe('completion', function() ]]) -- Works for unindenting too. feed('ounin<C-X><C-N>') - helpers.poke_eventloop() + poke_eventloop() feed('<BS>d') screen:expect([[ inc uninc indent unindent | @@ -1067,7 +1067,7 @@ describe('completion', function() {3:-- }{4:match 1 of 3} | ]]) command([[call timer_start(100, { -> execute('stopinsert') })]]) - helpers.sleep(200) + vim.uv.sleep(200) feed('k') -- cursor should move up in Normal mode screen:expect([[ hello | diff --git a/test/functional/editor/ctrl_c_spec.lua b/test/functional/editor/ctrl_c_spec.lua index 0321a21b35..e6a6ea808a 100644 --- a/test/functional/editor/ctrl_c_spec.lua +++ b/test/functional/editor/ctrl_c_spec.lua @@ -3,7 +3,7 @@ local Screen = require('test.functional.ui.screen') local clear, feed, source = helpers.clear, helpers.feed, helpers.source local command = helpers.command local poke_eventloop = helpers.poke_eventloop -local sleep = helpers.sleep +local sleep = vim.uv.sleep describe('CTRL-C (mapped)', function() local screen |