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/ui/wildmode_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/ui/wildmode_spec.lua')
-rw-r--r-- | test/functional/ui/wildmode_spec.lua | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/test/functional/ui/wildmode_spec.lua b/test/functional/ui/wildmode_spec.lua index 4ad0326851..667dd64d62 100644 --- a/test/functional/ui/wildmode_spec.lua +++ b/test/functional/ui/wildmode_spec.lua @@ -231,10 +231,6 @@ describe("'wildmenu'", function() end) it('with laststatus=0, :vsplit, :term #2255', function() - -- Because this test verifies a _lack_ of activity after screen:sleep(), we - -- must wait the full timeout. So make it reasonable. - screen.timeout = 1000 - if not is_os('win') then command('set shell=sh') -- Need a predictable "$" prompt. command('let $PS1 = "$"') @@ -257,7 +253,9 @@ describe("'wildmenu'", function() -- Check only the last 2 lines, because the shell output is -- system-dependent. screen:expect { any = '! # & < = > @ > |\n:!^' } - screen:expect_unchanged() + -- Because this test verifies a _lack_ of activity, we must wait the full timeout. + -- So make it reasonable. + screen:expect_unchanged(false, 1000) end) it('wildmode=list,full and messages interaction #10092', function() |