diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-04-06 20:22:06 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-04-06 20:22:06 +0200 |
commit | 3680bab7e797444a7f41646888d9dd04b01c3816 (patch) | |
tree | 2d2d87926ac6cc5afece9faf3e75d30c9e1bf652 /src/testdir/screendump.vim | |
parent | 51ad4eaa22e15cf1fe6c45d82c7e1371e00401a4 (diff) |
patch 8.0.1667: terminal window tests are flakyv8.0.1667
Problem: Terminal window tests are flaky.
Solution: Increase the waiting time for Vim to start.
Diffstat (limited to 'src/testdir/screendump.vim')
-rw-r--r-- | src/testdir/screendump.vim | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/testdir/screendump.vim b/src/testdir/screendump.vim index d4fae07425..764345a98c 100644 --- 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 |