mirror of
https://github.com/neovim/neovim.git
synced 2026-08-03 06:09:14 +00:00
vim-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.
769e9d21ac
This commit is contained in:
@@ -133,7 +133,7 @@ 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.
|
||||
@@ -141,7 +141,7 @@ endfunc
|
||||
" 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()
|
||||
|
||||
Reference in New Issue
Block a user