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/core | |
parent | d33e1da9b7f7e886219cfdd20b9bbfaccdc43be9 (diff) | |
download | rneovim-7a259d01aed52134a1675e47d9054ccad7ef7cbb.tar.gz rneovim-7a259d01aed52134a1675e47d9054ccad7ef7cbb.tar.bz2 rneovim-7a259d01aed52134a1675e47d9054ccad7ef7cbb.zip |
test: remove helpers.sleep()
Diffstat (limited to 'test/functional/core')
-rw-r--r-- | test/functional/core/channels_spec.lua | 2 | ||||
-rw-r--r-- | test/functional/core/fileio_spec.lua | 3 | ||||
-rw-r--r-- | test/functional/core/job_spec.lua | 2 | ||||
-rw-r--r-- | test/functional/core/startup_spec.lua | 2 |
4 files changed, 4 insertions, 5 deletions
diff --git a/test/functional/core/channels_spec.lua b/test/functional/core/channels_spec.lua index 0b58e8bc54..570dda0730 100644 --- a/test/functional/core/channels_spec.lua +++ b/test/functional/core/channels_spec.lua @@ -2,7 +2,7 @@ local helpers = require('test.functional.helpers')(after_each) local clear, eq, eval, next_msg, ok, source = helpers.clear, helpers.eq, helpers.eval, helpers.next_msg, helpers.ok, helpers.source local command, funcs, meths = helpers.command, helpers.funcs, helpers.meths -local sleep = helpers.sleep +local sleep = vim.uv.sleep local spawn, nvim_argv = helpers.spawn, helpers.nvim_argv local set_session = helpers.set_session local nvim_prog = helpers.nvim_prog diff --git a/test/functional/core/fileio_spec.lua b/test/functional/core/fileio_spec.lua index 3aaa4383b4..6b821869ee 100644 --- a/test/functional/core/fileio_spec.lua +++ b/test/functional/core/fileio_spec.lua @@ -17,7 +17,7 @@ local rmdir = helpers.rmdir local matches = helpers.matches local meths = helpers.meths local mkdir = helpers.mkdir -local sleep = helpers.sleep +local sleep = vim.uv.sleep local read_file = helpers.read_file local trim = vim.trim local currentdir = helpers.funcs.getcwd @@ -295,7 +295,6 @@ describe('fileio', function() local future_time = cur_unix_time + 999999 -- Set the file's access/update time to be -- greater than the time at which it was created. - local uv = require('luv') uv.fs_utime('Xtest-overwrite-forced', future_time, future_time) -- use async feed_command because nvim basically hangs on the prompt feed_command('w') diff --git a/test/functional/core/job_spec.lua b/test/functional/core/job_spec.lua index 210007f027..e1baa6f48f 100644 --- a/test/functional/core/job_spec.lua +++ b/test/functional/core/job_spec.lua @@ -1177,7 +1177,7 @@ describe('jobs', function() -- Have to wait so that the SIGHUP can be processed by tty-test on time. -- Can't wait for the next message in case this test fails, if it fails -- there won't be any more messages, and the test would hang. - helpers.sleep(100) + vim.uv.sleep(100) local err = exc_exec('call jobpid(j)') eq('Vim(call):E900: Invalid channel id', err) diff --git a/test/functional/core/startup_spec.lua b/test/functional/core/startup_spec.lua index 7953a101e1..5d2da8f5e0 100644 --- a/test/functional/core/startup_spec.lua +++ b/test/functional/core/startup_spec.lua @@ -22,7 +22,7 @@ local nvim_set = helpers.nvim_set local read_file = helpers.read_file local retry = helpers.retry local rmdir = helpers.rmdir -local sleep = helpers.sleep +local sleep = vim.uv.sleep local startswith = vim.startswith local write_file = helpers.write_file local meths = helpers.meths |