From d0c699ec7b0fe6f942536b8241e35575f3b9d5ff Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Wed, 18 Feb 2026 19:10:08 +0800 Subject: [PATCH] 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. --- test/functional/ui/screen.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/functional/ui/screen.lua b/test/functional/ui/screen.lua index 89f6e80e0e8..b372e9995d9 100644 --- a/test/functional/ui/screen.lua +++ b/test/functional/ui/screen.lua @@ -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)