Mercurial > vim
diff src/testdir/screendump.vim @ 13650:87ffb7f85b28 v8.0.1697
patch 8.0.1697: various tests are still a bit flaky
commit https://github.com/vim/vim/commit/769e9d21ac3e8dff43b9ef5e46cdc4523833b51e
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Apr 11 20:53:49 2018 +0200
patch 8.0.1697: various tests are still a bit flaky
Problem: Various tests are still a bit flaky.
Solution: Increase the default wait time to five seconds.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 11 Apr 2018 21:00:07 +0200 |
parents | 2f44d91c2bcc |
children | 404b89cb1e2a |
line wrap: on
line diff
--- a/src/testdir/screendump.vim +++ b/src/testdir/screendump.vim @@ -60,8 +60,8 @@ func RunVimInTerminal(arguments, options call assert_equal([rows, cols], term_getsize(buf)) " 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) + " This can be quite slow (e.g. when using valgrind). + call WaitFor({-> len(term_getline(buf, rows)) >= cols - 1}) return buf endfunc @@ -70,7 +70,7 @@ endfunc func StopVimInTerminal(buf) call assert_equal("running", term_getstatus(a:buf)) call term_sendkeys(a:buf, "\<Esc>\<Esc>:qa!\<cr>") - call WaitFor('term_getstatus(' . a:buf . ') == "finished"', 3000) + call WaitFor('term_getstatus(' . a:buf . ') == "finished"') only! endfunc