patch 8.0.1667: terminal window tests are flaky
Problem: Terminal window tests are flaky. Solution: Increase the waiting time for Vim to start.
This commit is contained in:
@ -59,8 +59,9 @@ func RunVimInTerminal(arguments, options)
|
|||||||
let buf = term_start(cmd, {'curwin': 1, 'term_rows': rows, 'term_cols': cols})
|
let buf = term_start(cmd, {'curwin': 1, 'term_rows': rows, 'term_cols': cols})
|
||||||
call assert_equal([rows, cols], term_getsize(buf))
|
call assert_equal([rows, cols], term_getsize(buf))
|
||||||
|
|
||||||
" Wait for the ruler (in the status line) to be shown.
|
" Wait for "All" of the ruler in the status line to be shown.
|
||||||
call WaitFor({-> len(term_getline(buf, rows)) >= cols - 1})
|
" 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
|
return buf
|
||||||
endfunc
|
endfunc
|
||||||
|
|||||||
@ -762,6 +762,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1667,
|
||||||
/**/
|
/**/
|
||||||
1666,
|
1666,
|
||||||
/**/
|
/**/
|
||||||
|
|||||||
Reference in New Issue
Block a user