Mercurial > vim
changeset 18209:9a7bbad64376 v8.1.2099
patch 8.1.2099: state() test fails on some Mac systems
Commit: https://github.com/vim/vim/commit/b7a97ef340f03ca08df8c8e00cd5580f61aac824
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Sep 28 22:11:56 2019 +0200
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 https://github.com/vim/vim/issues/4983)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 28 Sep 2019 22:15:03 +0200 |
parents | bc5f313b71ef |
children | adf512e978c3 |
files | src/testdir/test_functions.vim src/version.c |
diffstat | 2 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/testdir/test_functions.vim +++ b/src/testdir/test_functions.vim @@ -1667,6 +1667,7 @@ func Test_state() let lines =<< trim END call setline(1, ['one', 'two', 'three']) map ;; gg + set complete=. func RunTimer() call timer_start(10, {id -> execute('let g:state = state()') .. execute('let g:mode = mode()')}) endfunc @@ -1694,9 +1695,9 @@ func Test_state() call term_sendkeys(buf, getstate) call WaitForAssert({-> assert_match('state: mSc; mode: n', term_getline(buf, 6))}, 1000) - " Insert mode completion + " Insert mode completion (bit slower on Mac) call term_sendkeys(buf, ":call RunTimer()\<CR>Got\<C-N>") - call term_wait(buf, 50) + call term_wait(buf, 200) call term_sendkeys(buf, "\<Esc>") call term_sendkeys(buf, getstate) call WaitForAssert({-> assert_match('state: aSc; mode: i', term_getline(buf, 6))}, 1000)