diff options
author | Daniel Hahler <git@thequod.de> | 2019-10-15 20:50:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-15 20:50:51 +0200 |
commit | 932edf4f338c4d31f94fdaaa125d3ff8c2e6fe08 (patch) | |
tree | 1b87918f1e07b5b72625bf13b590e6583164a74e | |
parent | 2e14dffbb49666bc79c2aa4fd9cea23d7f2f058c (diff) | |
download | rneovim-932edf4f338c4d31f94fdaaa125d3ff8c2e6fe08.tar.gz rneovim-932edf4f338c4d31f94fdaaa125d3ff8c2e6fe08.tar.bz2 rneovim-932edf4f338c4d31f94fdaaa125d3ff8c2e6fe08.zip |
tests: tui_spec: fix waiting for terminal to be ready (#11232)
The screen would have '-- TERMINAL --' already initially.
Related to flakiness of "TUI FocusGained/FocusLost in terminal-mode".
-rw-r--r-- | test/functional/terminal/tui_spec.lua | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/test/functional/terminal/tui_spec.lua b/test/functional/terminal/tui_spec.lua index 326a578bb7..4f5cfa930a 100644 --- a/test/functional/terminal/tui_spec.lua +++ b/test/functional/terminal/tui_spec.lua @@ -924,7 +924,15 @@ describe('TUI FocusGained/FocusLost', function() feed_data(':terminal\n') -- Wait for terminal to be ready. - screen:expect{any='-- TERMINAL --'} + screen:expect{grid=[[ + {1:r}eady $ | + [Process exited 0] | + | + | + | + :terminal | + {3:-- TERMINAL --} | + ]]} feed_data('\027[I') screen:expect{grid=[[ |