mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 19:38:20 +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:
@@ -251,15 +251,7 @@ describe('timers', function()
|
||||
:good^ |
|
||||
]])
|
||||
command('let g:val = 1')
|
||||
|
||||
screen:expect{grid=[[
|
||||
|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
:good^ |
|
||||
]], intermediate=true, timeout=load_adjust(200)}
|
||||
screen:expect_unchanged(true, load_adjust(200))
|
||||
|
||||
eq(2, eval('g:val'))
|
||||
end)
|
||||
|
Reference in New Issue
Block a user