mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 11:28:22 +00:00
Merge pull request #25695 from neovim/backport-25694-to-release-0.9
[Backport release-0.9] test(autocmd/termxx_spec): fix flakiness
This commit is contained in:
@@ -148,11 +148,12 @@ it('autocmd TermEnter, TermLeave', function()
|
|||||||
|
|
||||||
-- TermLeave is also triggered by :quit.
|
-- TermLeave is also triggered by :quit.
|
||||||
command('split foo')
|
command('split foo')
|
||||||
|
feed('<Ignore>') -- Add input to separate two RPC requests
|
||||||
command('wincmd w')
|
command('wincmd w')
|
||||||
feed('i')
|
feed('i')
|
||||||
command('q!')
|
command('q!')
|
||||||
eq(
|
feed('<Ignore>') -- Add input to separate two RPC requests
|
||||||
{
|
eq({
|
||||||
{'TermOpen', 'n'},
|
{'TermOpen', 'n'},
|
||||||
{'TermEnter', 't'},
|
{'TermEnter', 't'},
|
||||||
{'TermLeave', 'n'},
|
{'TermLeave', 'n'},
|
||||||
@@ -161,8 +162,7 @@ it('autocmd TermEnter, TermLeave', function()
|
|||||||
{'TermEnter', 't'},
|
{'TermEnter', 't'},
|
||||||
{'TermClose', 't'},
|
{'TermClose', 't'},
|
||||||
{'TermLeave', 'n'},
|
{'TermLeave', 'n'},
|
||||||
},
|
}, eval('g:evs'))
|
||||||
eval('g:evs'))
|
|
||||||
end)
|
end)
|
||||||
|
|
||||||
describe('autocmd TextChangedT', function()
|
describe('autocmd TextChangedT', function()
|
||||||
|
Reference in New Issue
Block a user