mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
test: make expect_unchanged() less confusing (#22255)
Problem: The sleep before collecting the initial screen state is confusing and may lead to unexpected success if it comes after a blocking RPC call. Solution: Remove that sleep and add an "intermediate" argument.
This commit is contained in:
@@ -77,13 +77,8 @@ describe('vim.ui_attach', function()
|
||||
}
|
||||
|
||||
feed '<c-y>'
|
||||
screen:expect{grid=[[
|
||||
foobar^ |
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{2:-- INSERT --} |
|
||||
]], intermediate=true}
|
||||
-- There is an intermediate state where the 'showmode' message disappears.
|
||||
screen:expect_unchanged(true)
|
||||
expect_events {
|
||||
{ "popupmenu_hide" };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user