From 71acb7104344e3631e995b973416776aeadda0e1 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Mon, 21 Aug 2023 13:21:28 +0800 Subject: 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) https://github.com/vim/vim/commit/b7a97ef340f03ca08df8c8e00cd5580f61aac824 Co-authored-by: Bram Moolenaar --- test/functional/vimscript/state_spec.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/functional/vimscript/state_spec.lua') diff --git a/test/functional/vimscript/state_spec.lua b/test/functional/vimscript/state_spec.lua index dcff3c8d7e..fd38a8ad5b 100644 --- a/test/functional/vimscript/state_spec.lua +++ b/test/functional/vimscript/state_spec.lua @@ -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()Got]]) + feed([[:call RunTimer()Got]]) poke_eventloop() -- Allow polling for events feed('') eq({ 'aSc', 'i' }, exec_lua('return _G.res')) -- cgit