aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-09-03 12:06:10 +0200
committerJustin M. Keyes <justinkz@gmail.com>2017-09-05 15:01:07 +0200
commitff32bacb2e9781f5589eea1056e193897b0f964e (patch)
tree2a97f6d18596e8a079facaf1fb9f9afecaa1e236
parent8716994cf07e9c9dab4af31a0acf47c858a1b789 (diff)
downloadrneovim-ff32bacb2e9781f5589eea1056e193897b0f964e.tar.gz
rneovim-ff32bacb2e9781f5589eea1056e193897b0f964e.tar.bz2
rneovim-ff32bacb2e9781f5589eea1056e193897b0f964e.zip
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.
-rw-r--r--test/functional/terminal/tui_spec.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/functional/terminal/tui_spec.lua b/test/functional/terminal/tui_spec.lua
index 00a47e1ed0..952062215d 100644
--- a/test/functional/terminal/tui_spec.lua
+++ b/test/functional/terminal/tui_spec.lua
@@ -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 $ |