mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 11:28:22 +00:00
Remove indeterminism in oldfiles_spec.lua
If Nvim is in a "Press ENTER..." screen before the `get_vvar()` call, the test will hang.
This commit is contained in:
@@ -62,6 +62,9 @@ describe(':oldfiles!', function()
|
||||
_clear()
|
||||
execute('rshada! ' .. shada_file)
|
||||
|
||||
-- Ensure nvim is out of "Press ENTER..." screen
|
||||
feed('<cr>')
|
||||
|
||||
-- Ensure v:oldfiles isn't busted. Since things happen so fast,
|
||||
-- the ordering of v:oldfiles is unstable (it uses qsort() under-the-hood).
|
||||
-- Let's verify the contents and the length of v:oldfiles before moving on.
|
||||
|
Reference in New Issue
Block a user