diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-07-17 22:39:25 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-17 22:39:25 +0800 |
commit | bc2bd25f8e7123c335806832f29903f0e18d6914 (patch) | |
tree | 7d1c3a7beb5f7bf39c4f9d312719c3e7818630c0 /test/functional/ui/screen.lua | |
parent | dafd944a465c576a86cfa34cc7f7a5e18a39b8e7 (diff) | |
download | rneovim-bc2bd25f8e7123c335806832f29903f0e18d6914.tar.gz rneovim-bc2bd25f8e7123c335806832f29903f0e18d6914.tar.bz2 rneovim-bc2bd25f8e7123c335806832f29903f0e18d6914.zip |
test: fix reporting "no flush received" too early (#29735)
Diffstat (limited to 'test/functional/ui/screen.lua')
-rw-r--r-- | test/functional/ui/screen.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/functional/ui/screen.lua b/test/functional/ui/screen.lua index 932ddb070a..f1891b608e 100644 --- a/test/functional/ui/screen.lua +++ b/test/functional/ui/screen.lua @@ -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 |