mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06: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()
|
self._session:stop()
|
||||||
end
|
end
|
||||||
elseif success_seen and #args > 0 then
|
elseif success_seen and #args > 0 then
|
||||||
|
success_seen = false
|
||||||
failure_after_success = true
|
failure_after_success = true
|
||||||
-- print(inspect(args))
|
-- print(inspect(args))
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user