mirror of
https://github.com/neovim/neovim
synced 2025-07-16 09:11:51 +00:00
test: fix reporting "no flush received" too early (#29735)
(cherry picked from commit bc2bd25f8e
)
This commit is contained in:
@ -787,7 +787,9 @@ function Screen:_wait(check, flags)
|
|||||||
end
|
end
|
||||||
local eof = run_session(self._session, flags.request_cb, notification_cb, nil, minimal_timeout)
|
local eof = run_session(self._session, flags.request_cb, notification_cb, nil, minimal_timeout)
|
||||||
if not did_flush then
|
if not did_flush then
|
||||||
err = 'no flush received'
|
if eof then
|
||||||
|
err = 'no flush received'
|
||||||
|
end
|
||||||
elseif not checked then
|
elseif not checked then
|
||||||
err = check()
|
err = check()
|
||||||
if not err and flags.unchanged then
|
if not err and flags.unchanged then
|
||||||
@ -800,6 +802,9 @@ function Screen:_wait(check, flags)
|
|||||||
did_minimal_timeout = true
|
did_minimal_timeout = true
|
||||||
eof =
|
eof =
|
||||||
run_session(self._session, flags.request_cb, notification_cb, nil, timeout - minimal_timeout)
|
run_session(self._session, flags.request_cb, notification_cb, nil, timeout - minimal_timeout)
|
||||||
|
if not did_flush then
|
||||||
|
err = 'no flush received'
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local did_warn = false
|
local did_warn = false
|
||||||
|
Reference in New Issue
Block a user