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.
This commit is contained in:
zeertzjq authored and GitHub committed 2026-02-18 19:10:08 +08:00
1 parent a520d9c4ea
commit d0c699ec7b
1 file changed
+2
+2
View File
@@ -809,6 +809,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)