diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-03-01 20:16:57 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-01 20:16:57 +0800 |
commit | d66832c76d6fce1627c33ae60a1b8efec1e32bdd (patch) | |
tree | ef8566a97e086243d8cd49292dc638ef308f6c9a /test/functional/ui/screen.lua | |
parent | 96d3616a531b2626e3ab9b4fa2c5dea03a927717 (diff) | |
download | rneovim-d66832c76d6fce1627c33ae60a1b8efec1e32bdd.tar.gz rneovim-d66832c76d6fce1627c33ae60a1b8efec1e32bdd.tar.bz2 rneovim-d66832c76d6fce1627c33ae60a1b8efec1e32bdd.zip |
test(ui): wait for another success with failure after success
Problem:
In a success-failure-success situation, if minimal timeout is reached
between the failure and the second success, the session is stopped
without waiting for the second success, causing the test to fail.
Solution:
Wait for another success if a failure is seen after a success.
Ref #22155 #22464
Diffstat (limited to 'test/functional/ui/screen.lua')
-rw-r--r-- | test/functional/ui/screen.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/functional/ui/screen.lua b/test/functional/ui/screen.lua index 14ce050578..e5a449fa66 100644 --- a/test/functional/ui/screen.lua +++ b/test/functional/ui/screen.lua @@ -557,6 +557,7 @@ function Screen:_wait(check, flags) self._session:stop() end elseif success_seen and #args > 0 then + success_seen = false failure_after_success = true -- print(inspect(args)) end |