[go: up one dir, main page]

Skip to content

Commit

Permalink
test: fix reporting "no flush received" too early (#29735)
Browse files Browse the repository at this point in the history
(cherry picked from commit bc2bd25)
  • Loading branch information
zeertzjq committed Jul 17, 2024
1 parent eb53aba commit 68513c2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/functional/ui/screen.lua
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,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
Expand All @@ -800,6 +802,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
Expand Down

0 comments on commit 68513c2

Please sign in to comment.