Mercurial > vim
diff src/testdir/screendump.vim @ 13590:0fc3ec8517e9 v8.0.1667
patch 8.0.1667: terminal window tests are flaky
commit https://github.com/vim/vim/commit/3680bab7e797444a7f41646888d9dd04b01c3816
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Apr 6 20:22:06 2018 +0200
patch 8.0.1667: terminal window tests are flaky
Problem: Terminal window tests are flaky.
Solution: Increase the waiting time for Vim to start.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 06 Apr 2018 20:30:06 +0200 |
parents | af68603e213d |
children | 2f44d91c2bcc |
line wrap: on
line diff
--- a/src/testdir/screendump.vim +++ b/src/testdir/screendump.vim @@ -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