diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-02-25 13:35:24 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-25 13:35:24 +0800 |
commit | b72dc2d8ade54ba22b0b25ffe9402ffb314ef97d (patch) | |
tree | 1528216536dbf48d27e62857efecf9de30941757 /test/functional/terminal/tui_spec.lua | |
parent | 2e1f5055acdef650c27efc4afdf8606037ec021b (diff) | |
download | rneovim-b72dc2d8ade54ba22b0b25ffe9402ffb314ef97d.tar.gz rneovim-b72dc2d8ade54ba22b0b25ffe9402ffb314ef97d.tar.bz2 rneovim-b72dc2d8ade54ba22b0b25ffe9402ffb314ef97d.zip |
test: don't use minimal timeout for "intermediate" flag (#27620)
With "intermediate" flag, only using minimal timeout is too short and
may lead to failures.
Also remove the fallback timeout in screen:expect_unchanged(), as having
a different fallback timeout than screen:expect() is confusing.
Diffstat (limited to 'test/functional/terminal/tui_spec.lua')
-rw-r--r-- | test/functional/terminal/tui_spec.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/functional/terminal/tui_spec.lua b/test/functional/terminal/tui_spec.lua index d63338845a..94690524d3 100644 --- a/test/functional/terminal/tui_spec.lua +++ b/test/functional/terminal/tui_spec.lua @@ -2669,10 +2669,9 @@ describe("TUI 'term' option", function() }) local full_timeout = screen.timeout - screen.timeout = 250 -- We want screen:expect() to fail quickly. retry(nil, 2 * full_timeout, function() -- Wait for TUI thread to set 'term'. feed_data(":echo 'term='.(&term)\n") - screen:expect { any = 'term=' .. term_expected } + screen:expect { any = 'term=' .. term_expected, timeout = 250 } end) end |