Skip to content

Commit b7a97ef

Browse files
committed
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 #4983)
1 parent 37ac4a5 commit b7a97ef

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

src/testdir/test_functions.vim

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1667,6 +1667,7 @@ func Test_state()
16671667
let lines =<< trim END
16681668
call setline(1, ['one', 'two', 'three'])
16691669
map ;; gg
1670+
set complete=.
16701671
func RunTimer()
16711672
call timer_start(10, {id -> execute('let g:state = state()') .. execute('let g:mode = mode()')})
16721673
endfunc
@@ -1694,9 +1695,9 @@ func Test_state()
16941695
call term_sendkeys(buf, getstate)
16951696
call WaitForAssert({-> assert_match('state: mSc; mode: n', term_getline(buf, 6))}, 1000)
16961697

1697-
" Insert mode completion
1698+
" Insert mode completion (bit slower on Mac)
16981699
call term_sendkeys(buf, ":call RunTimer()\<CR>Got\<C-N>")
1699-
call term_wait(buf, 50)
1700+
call term_wait(buf, 200)
17001701
call term_sendkeys(buf, "\<Esc>")
17011702
call term_sendkeys(buf, getstate)
17021703
call WaitForAssert({-> assert_match('state: aSc; mode: i', term_getline(buf, 6))}, 1000)

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -753,6 +753,8 @@ static char *(features[]) =
753753

754754
static int included_patches[] =
755755
{ /* Add new patch number below this line */
756+
/**/
757+
2099,
756758
/**/
757759
2098,
758760
/**/

0 commit comments

Comments
 (0)