summaryrefslogtreecommitdiffstats
path: root/src/testdir/shared.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-04-11 20:53:49 +0200
committerBram Moolenaar <Bram@vim.org>2018-04-11 20:53:49 +0200
commit769e9d21ac3e8dff43b9ef5e46cdc4523833b51e (patch)
treeba7bacd8603ba2da1d4a28e1c87813969804be8f /src/testdir/shared.vim
parentd60e0a1d202d49503ba95a40c165172c8f61db7a (diff)
patch 8.0.1697: various tests are still a bit flakyv8.0.1697
Problem: Various tests are still a bit flaky. Solution: Increase the default wait time to five seconds.
Diffstat (limited to 'src/testdir/shared.vim')
-rw-r--r--src/testdir/shared.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testdir/shared.vim b/src/testdir/shared.vim
index d47a355383..6c3f8a4e63 100644
--- 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()