diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2016-04-14 17:24:14 +0200 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2016-04-14 18:11:39 +0200 |
commit | 01eafc0c176442b59599e73db01a2f7956342c27 (patch) | |
tree | 9e9466a437c0796a168d0358013ddf94cf2023c3 /test/functional/ex_cmds/oldfiles_spec.lua | |
parent | 69d74f588a885d42228b4ff83348283c36ed96a9 (diff) | |
download | rneovim-01eafc0c176442b59599e73db01a2f7956342c27.tar.gz rneovim-01eafc0c176442b59599e73db01a2f7956342c27.tar.bz2 rneovim-01eafc0c176442b59599e73db01a2f7956342c27.zip |
tests: fix indeterministic oldfiles! test
Diffstat (limited to 'test/functional/ex_cmds/oldfiles_spec.lua')
-rw-r--r-- | test/functional/ex_cmds/oldfiles_spec.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/functional/ex_cmds/oldfiles_spec.lua b/test/functional/ex_cmds/oldfiles_spec.lua index 3d90d20ab3..5bba1a0e7c 100644 --- a/test/functional/ex_cmds/oldfiles_spec.lua +++ b/test/functional/ex_cmds/oldfiles_spec.lua @@ -2,7 +2,7 @@ local Screen = require('test.functional.ui.screen') local helpers = require('test.functional.helpers') local buf, eq, execute = helpers.curbufmeths, helpers.eq, helpers.execute -local feed, nvim_prog = helpers.feed, helpers.nvim_prog +local feed, nvim_prog, wait = helpers.feed, helpers.nvim_prog, helpers.wait local ok, set_session, spawn = helpers.ok, helpers.set_session, helpers.spawn local shada_file = 'test.shada' @@ -59,6 +59,7 @@ describe(':oldfiles!', function() execute('edit testfile2') filename2 = buf.get_name() execute('wshada ' .. shada_file) + wait() _clear() execute('rshada! ' .. shada_file) |