diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2016-04-10 23:49:13 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2016-04-11 23:07:52 -0300 |
commit | f5f11b9e2f39a1647843f367a6ec85e64e01bf10 (patch) | |
tree | 41593af25d6c9f7a510e992d72fb184061b30aee /test/functional/ex_cmds/oldfiles_spec.lua | |
parent | 3f698b81061161f9466f35e80ecbe7d46b8e2695 (diff) | |
download | rneovim-f5f11b9e2f39a1647843f367a6ec85e64e01bf10.tar.gz rneovim-f5f11b9e2f39a1647843f367a6ec85e64e01bf10.tar.bz2 rneovim-f5f11b9e2f39a1647843f367a6ec85e64e01bf10.zip |
Remove indeterminism in oldfiles_spec.lua
If Nvim is in a "Press ENTER..." screen before the `get_vvar()` call, the test
will hang.
Diffstat (limited to 'test/functional/ex_cmds/oldfiles_spec.lua')
-rw-r--r-- | test/functional/ex_cmds/oldfiles_spec.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/functional/ex_cmds/oldfiles_spec.lua b/test/functional/ex_cmds/oldfiles_spec.lua index dac6757a97..3d90d20ab3 100644 --- a/test/functional/ex_cmds/oldfiles_spec.lua +++ b/test/functional/ex_cmds/oldfiles_spec.lua @@ -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. |