neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit bbc74d51ad791edad1948178736589cb181236e8
parent 4db4168aafc8ac59f5cb4def5cd7eecfb3f2ada4
Author: zeertzjq <zeertzjq@outlook.com>
Date:   Wed, 18 Oct 2023 07:19:29 +0800

test(autocmd/termxx_spec): fix flakiness (#25694)


Diffstat:
Mtest/functional/autocmd/termxx_spec.lua | 24++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)

diff --git 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()