mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 11:15:14 -07:00
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
This commit is contained in:
parent
96d3616a53
commit
d66832c76d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user