mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 18:55:14 -07:00
test: fix reporting "no flush received" too early (#29735)
This commit is contained in:
parent
dafd944a46
commit
bc2bd25f8e
@ -788,7 +788,9 @@ function Screen:_wait(check, flags)
|
||||
end
|
||||
local eof = run_session(self._session, flags.request_cb, notification_cb, nil, minimal_timeout)
|
||||
if not did_flush then
|
||||
err = 'no flush received'
|
||||
if eof then
|
||||
err = 'no flush received'
|
||||
end
|
||||
elseif not checked then
|
||||
err = check()
|
||||
if not err and flags.unchanged then
|
||||
@ -801,6 +803,9 @@ function Screen:_wait(check, flags)
|
||||
did_minimal_timeout = true
|
||||
eof =
|
||||
run_session(self._session, flags.request_cb, notification_cb, nil, timeout - minimal_timeout)
|
||||
if not did_flush then
|
||||
err = 'no flush received'
|
||||
end
|
||||
end
|
||||
|
||||
local did_warn = false
|
||||
|
Loading…
Reference in New Issue
Block a user