tests: fix indeterministic oldfiles! test

This commit is contained in:
Björn Linse 2016-04-14 17:24:14 +02:00
parent 69d74f588a
commit 01eafc0c17

View File

@ -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)