commit d66832c76d6fce1627c33ae60a1b8efec1e32bdd
parent 96d3616a531b2626e3ab9b4fa2c5dea03a927717
Author: zeertzjq <zeertzjq@outlook.com>
Date: Wed, 1 Mar 2023 20:16:57 +0800
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:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git 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