test(autocmd/termxx_spec): fix flakiness

This commit is contained in:
zeertzjq 2023-10-18 06:42:03 +08:00
parent bc5dfda441
commit e1020a63f7

View File

@ -149,11 +149,12 @@ 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(
{
feed('<Ignore>') -- Add input to separate two RPC requests
eq({
{'TermOpen', 'n'},
{'TermEnter', 't'},
{'TermLeave', 'n'},
@ -162,8 +163,7 @@ it('autocmd TermEnter, TermLeave', function()
{'TermEnter', 't'},
{'TermClose', 't'},
{'TermLeave', 'n'},
},
eval('g:evs'))
}, eval('g:evs'))
end)
describe('autocmd TextChangedT', function()