Skip to content
Permalink
Browse files

patch 8.0.1667: terminal window tests are flaky

Problem:    Terminal window tests are flaky.
Solution:   Increase the waiting time for Vim to start.
  • Loading branch information
brammool committed Apr 6, 2018
1 parent 51ad4ea commit 3680bab7e797444a7f41646888d9dd04b01c3816
Showing with 5 additions and 2 deletions.
  1. +3 −2 src/testdir/screendump.vim
  2. +2 −0 src/version.c
@@ -59,8 +59,9 @@ func RunVimInTerminal(arguments, options)
let buf = term_start(cmd, {'curwin': 1, 'term_rows': rows, 'term_cols': cols})
call assert_equal([rows, cols], term_getsize(buf))

" Wait for the ruler (in the status line) to be shown.
call WaitFor({-> len(term_getline(buf, rows)) >= cols - 1})
" Wait for "All" of the ruler in the status line to be shown.
" This can be quite slow (e.g. when using valgrind), wait up to 4 seconds.
call WaitFor({-> len(term_getline(buf, rows)) >= cols - 1}, 4000)

return buf
endfunc
@@ -762,6 +762,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1667,
/**/
1666,
/**/

0 comments on commit 3680bab

Please sign in to comment.
You can’t perform that action at this time.