Skip to content

Commit

Permalink
patch 8.0.1667: terminal window tests are flaky
Browse files Browse the repository at this point in the history
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 3680bab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/testdir/screendump.vim
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -762,6 +762,8 @@ static char *(features[]) =

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

0 comments on commit 3680bab

Please sign in to comment.