vim-patch:8.1.2099: state() test fails on some Mac systems

Problem:    state() test fails on some Mac systems.
Solution:   Increase the wait time. (closes vim/vim#4983)

b7a97ef340

Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
zeertzjq
2023-08-21 13:21:28 +08:00
parent e05031097c
commit 71acb71043
2 changed files with 5 additions and 3 deletions

View File

@@ -29,6 +29,7 @@ describe('state() function', function()
exec([[
call setline(1, ['one', 'two', 'three'])
map ;; gg
set complete=.
func RunTimer()
call timer_start(0, {id -> v:lua.Get_state_mode()})
endfunc
@@ -51,7 +52,7 @@ describe('state() function', function()
eq({ 'mS', 'n' }, exec_lua('return _G.res'))
-- Insert mode completion
feed([[:call RunTimer()<CR>Got<C-X><C-N>]])
feed([[:call RunTimer()<CR>Got<C-N>]])
poke_eventloop() -- Allow polling for events
feed('<Esc>')
eq({ 'aSc', 'i' }, exec_lua('return _G.res'))