mirror of
https://github.com/neovim/neovim.git
synced 2026-08-29 18:41:48 +00:00
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:
committed by
github-actions[bot]
parent
f6bc9efe62
commit
437f2e5a57
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user