From b60c986a49ed54042a5bf6dfba3ce26ae084aa47 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Sat, 15 Jun 2019 12:56:55 -0400 Subject: vim-patch:8.0.1245: when WaitFor() has a wrong expression it just waits a second (#10233) 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. https://github.com/vim/vim/commit/3e1c617d49224038a820ee2c552ebe31a84aaa89 --- src/nvim/testdir/shared.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/nvim/testdir/shared.vim b/src/nvim/testdir/shared.vim index 29af05fe3f..5dea33e2ac 100644 --- a/src/nvim/testdir/shared.vim +++ b/src/nvim/testdir/shared.vim @@ -156,7 +156,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. -- cgit