test(screen): fix minimal timeout too small for "intermediate" (#37933)

After #27620 flags.timeout is no longer used as the minimal timeout for
"intermediate", but the default minimal timeout shouldn't be too small.

(cherry picked from commit d0c699ec7b)
This commit is contained in:
zeertzjq
2026-02-18 19:10:08 +08:00
committed by github-actions[bot]
parent f6bc9efe62
commit 437f2e5a57

View File

@@ -755,6 +755,8 @@ function Screen:_wait(check, flags)
-- must not change, so always wait this full time.
if flags.unchanged then
minimal_timeout = flags.timeout or default_timeout_factor * 20
elseif flags.intermediate then
minimal_timeout = default_timeout_factor * 20
end
assert(timeout >= minimal_timeout)