diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-04-06 08:59:50 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-06 08:59:50 +0800 |
commit | 5581a90e20777a2493ca9835b11a67435287d64e (patch) | |
tree | 3a881ec6464e540ecae18e7092fa21438018b92b /test/functional/shada | |
parent | 08ae0c840b31b1ef9ed56c0f9d2f96585b474538 (diff) | |
download | rneovim-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.lua | 12 |
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() |