Mercurial > vim
diff src/testdir/shared.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 | aa6ecb272236 |
children | 415185e2c970 |
line wrap: on
line diff
--- a/src/testdir/shared.vim +++ b/src/testdir/shared.vim @@ -113,14 +113,14 @@ func s:kill_server(cmd) endif endfunc -" Wait for up to a second for "expr" to become true. "expr" can be a +" Wait for up to five seconds for "expr" to become true. "expr" can be a " stringified expression to evaluate, or a funcref without arguments. " A second argument can be used to specify a different timeout in msec. " " Return time slept in milliseconds. With the +reltime feature this can be " more than the actual waiting time. Without +reltime it can also be less. func WaitFor(expr, ...) - let timeout = get(a:000, 0, 1000) + let timeout = get(a:000, 0, 5000) " using reltime() is more accurate, but not always available if has('reltime') let start = reltime()