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:
zeertzjq 2023-03-01 20:16:57 +08:00 committed by GitHub
parent 96d3616a53
commit d66832c76d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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