aboutsummaryrefslogtreecommitdiff
path: root/test/functional/shada
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-04-06 08:59:50 +0800
committerGitHub <noreply@github.com>2024-04-06 08:59:50 +0800
commit5581a90e20777a2493ca9835b11a67435287d64e (patch)
tree3a881ec6464e540ecae18e7092fa21438018b92b /test/functional/shada
parent08ae0c840b31b1ef9ed56c0f9d2f96585b474538 (diff)
downloadrneovim-5581a90e20777a2493ca9835b11a67435287d64e.tar.gz
rneovim-5581a90e20777a2493ca9835b11a67435287d64e.tar.bz2
rneovim-5581a90e20777a2493ca9835b11a67435287d64e.zip
test: reduce sleep for file timestamp change (#28196)
Now that Nvim always supports nanotime, sleeping for some milliseconds is enough.
Diffstat (limited to 'test/functional/shada')
-rw-r--r--test/functional/shada/marks_spec.lua12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/functional/shada/marks_spec.lua b/test/functional/shada/marks_spec.lua
index 3f29a02506..6eb1df38a3 100644
--- a/test/functional/shada/marks_spec.lua
+++ b/test/functional/shada/marks_spec.lua
@@ -163,17 +163,17 @@ describe('ShaDa support code', function()
eq({ 2, 0 }, api.nvim_win_get_cursor(0))
end)
- it('is able to dump and restore jump list with different times (slow!)', function()
+ it('is able to dump and restore jump list with different times', function()
nvim_command('edit ' .. testfilename_2)
- nvim_command('sleep 2')
+ nvim_command('sleep 10m')
nvim_command('normal! G')
- nvim_command('sleep 2')
+ nvim_command('sleep 10m')
nvim_command('normal! gg')
- nvim_command('sleep 2')
+ nvim_command('sleep 10m')
nvim_command('edit ' .. testfilename)
- nvim_command('sleep 2')
+ nvim_command('sleep 10m')
nvim_command('normal! G')
- nvim_command('sleep 2')
+ nvim_command('sleep 10m')
nvim_command('normal! gg')
expect_exit(nvim_command, 'qall')
reset()