mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07:00
test(autocmd/termxx_spec): fix flakiness
This commit is contained in:
parent
bc5dfda441
commit
e1020a63f7
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user