test: reduce sleep for file timestamp change (#28196)

Now that Nvim always supports nanotime, sleeping for some milliseconds
is enough.
This commit is contained in:
zeertzjq
2024-04-06 08:59:50 +08:00
committed by GitHub
parent 08ae0c840b
commit 5581a90e20
3 changed files with 9 additions and 9 deletions

View File

@@ -336,8 +336,8 @@ describe('input non-printable chars', function()
"Xtest-overwrite" [noeol] 1L, 6B |
]])
-- The timestamp is in second resolution, wait two seconds to be sure.
screen:sleep(2000)
-- Wait for some time so that the timestamp changes.
vim.uv.sleep(10)
write_file('Xtest-overwrite', [[smurf]])
feed_command('w')
screen:expect([[