aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-10-18 07:19:29 +0800
committerGitHub <noreply@github.com>2023-10-18 07:19:29 +0800
commitbbc74d51ad791edad1948178736589cb181236e8 (patch)
tree59f6dc75540cdcc2fb786ef3eab83a132b7e5239
parent4db4168aafc8ac59f5cb4def5cd7eecfb3f2ada4 (diff)
downloadrneovim-bbc74d51ad791edad1948178736589cb181236e8.tar.gz
rneovim-bbc74d51ad791edad1948178736589cb181236e8.tar.bz2
rneovim-bbc74d51ad791edad1948178736589cb181236e8.zip
test(autocmd/termxx_spec): fix flakiness (#25694)
-rw-r--r--test/functional/autocmd/termxx_spec.lua24
1 files changed, 12 insertions, 12 deletions
diff --git a/test/functional/autocmd/termxx_spec.lua b/test/functional/autocmd/termxx_spec.lua
index 802020494b..2522a28a9d 100644
--- a/test/functional/autocmd/termxx_spec.lua
+++ b/test/functional/autocmd/termxx_spec.lua
@@ -149,21 +149,21 @@ it('autocmd TermEnter, TermLeave', function()
-- TermLeave is also triggered by :quit.
command('split foo')
+ feed('<Ignore>') -- Add input to separate two RPC requests
command('wincmd w')
feed('i')
command('q!')
- eq(
- {
- {'TermOpen', 'n'},
- {'TermEnter', 't'},
- {'TermLeave', 'n'},
- {'TermEnter', 't'},
- {'TermLeave', 'n'},
- {'TermEnter', 't'},
- {'TermClose', 't'},
- {'TermLeave', 'n'},
- },
- eval('g:evs'))
+ feed('<Ignore>') -- Add input to separate two RPC requests
+ eq({
+ {'TermOpen', 'n'},
+ {'TermEnter', 't'},
+ {'TermLeave', 'n'},
+ {'TermEnter', 't'},
+ {'TermLeave', 'n'},
+ {'TermEnter', 't'},
+ {'TermClose', 't'},
+ {'TermLeave', 'n'},
+ }, eval('g:evs'))
end)
describe('autocmd TextChangedT', function()