summaryrefslogtreecommitdiffstats
path: root/src/testdir/shared.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-11-02 16:58:00 +0100
committerBram Moolenaar <Bram@vim.org>2017-11-02 16:58:00 +0100
commit3e1c617d49224038a820ee2c552ebe31a84aaa89 (patch)
treeb05d5e0c2b1e6d38b14796cd5329b5d827785470 /src/testdir/shared.vim
parentb94340c04f524482b408543daa1142f883831cab (diff)
patch 8.0.1245: when WaitFor() has a wrong expression it just waits a secondv8.0.1245
Problem: When WaitFor() has a wrong expression it just waits a second, which goes unnoticed. (James McCoy) Solution: When WaitFor() times out throw an exception. Fix places where the expression was wrong.
Diffstat (limited to 'src/testdir/shared.vim')
-rw-r--r--src/testdir/shared.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testdir/shared.vim b/src/testdir/shared.vim
index 8db388a4fa..eb43cf4e74 100644
--- a/src/testdir/shared.vim
+++ b/src/testdir/shared.vim
@@ -139,7 +139,7 @@ func WaitFor(expr, ...)
endif
sleep 10m
endfor
- return timeout
+ throw 'WaitFor() timed out after ' . timeout . ' msec'
endfunc
" Wait for up to a given milliseconds.