aboutsummaryrefslogtreecommitdiff
path: root/test/functional/eval/wait_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-09-11 12:56:46 -0700
committerGitHub <noreply@github.com>2019-09-11 12:56:46 -0700
commit7652904f79f6e434568e0b8e5946cfcafc9aa767 (patch)
tree3c5f0f83308102190ed9e3209900b222d17ed808 /test/functional/eval/wait_spec.lua
parentc8223e1618c4510f9eff13df509c6da95f869cc6 (diff)
downloadrneovim-7652904f79f6e434568e0b8e5946cfcafc9aa767.tar.gz
rneovim-7652904f79f6e434568e0b8e5946cfcafc9aa767.tar.bz2
rneovim-7652904f79f6e434568e0b8e5946cfcafc9aa767.zip
eval: wait(): always spin up dummy-timer #10990
This avoids getting "stuck". If user actually _wants_ to get stuck forever, they could use `:sleep` or specify a really big `interval`.
Diffstat (limited to 'test/functional/eval/wait_spec.lua')
-rw-r--r--test/functional/eval/wait_spec.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/eval/wait_spec.lua b/test/functional/eval/wait_spec.lua
index 341f2dc435..ad7d1574cb 100644
--- a/test/functional/eval/wait_spec.lua
+++ b/test/functional/eval/wait_spec.lua
@@ -59,10 +59,10 @@ describe('wait()', function()
]])
nvim('set_var', 'counter', 0)
- eq(-1, call('wait', 20, 'Count() >= 5'))
+ eq(-1, call('wait', 20, 'Count() >= 5', 99999))
nvim('set_var', 'counter', 0)
- eq(0, call('wait', 1000, 'Count() >= 5', 5))
+ eq(0, call('wait', 10000, 'Count() >= 5', 5))
eq(5, nvim('get_var', 'counter'))
end)