mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
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".
This commit is contained in:
parent
2e14dffbb4
commit
932edf4f33
@ -924,7 +924,15 @@ describe('TUI FocusGained/FocusLost', function()
|
|||||||
|
|
||||||
feed_data(':terminal\n')
|
feed_data(':terminal\n')
|
||||||
-- Wait for terminal to be ready.
|
-- 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')
|
feed_data('\027[I')
|
||||||
screen:expect{grid=[[
|
screen:expect{grid=[[
|
||||||
|
Loading…
Reference in New Issue
Block a user