test: FocusGained: let UI settle before sending input

This significantly increases the likelihood that the :echo'd text will
be included in the next UI flush, instead of being lost.
This commit is contained in:
Justin M. Keyes 2017-09-03 12:06:10 +02:00
parent 8716994cf0
commit ff32bacb2e

View File

@ -320,6 +320,7 @@ describe('tui FocusGained/FocusLost', function()
retry(2, 3 * screen.timeout, function()
feed_data(':terminal\n')
screen:sleep(10)
feed_data('\027[I')
screen:expect([[
{1:r}eady $ |