diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-10-18 07:19:29 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-18 07:19:29 +0800 |
commit | bbc74d51ad791edad1948178736589cb181236e8 (patch) | |
tree | 59f6dc75540cdcc2fb786ef3eab83a132b7e5239 | |
parent | 4db4168aafc8ac59f5cb4def5cd7eecfb3f2ada4 (diff) | |
download | rneovim-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.lua | 24 |
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() |