From 437f2e5a571f059c1070a7a03960e908be823bf4 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. (cherry picked from commit d0c699ec7b0fe6f942536b8241e35575f3b9d5ff) --- 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 4a412c524f..3472ddb233 100644 --- a/test/functional/ui/screen.lua +++ b/test/functional/ui/screen.lua @@ -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)