aboutsummaryrefslogtreecommitdiff
path: root/test/functional/eval/timer_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/eval/timer_spec.lua')
-rw-r--r--test/functional/eval/timer_spec.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/functional/eval/timer_spec.lua b/test/functional/eval/timer_spec.lua
index 48d10e46a9..2ccb9cfbac 100644
--- a/test/functional/eval/timer_spec.lua
+++ b/test/functional/eval/timer_spec.lua
@@ -192,9 +192,10 @@ describe('timers', function()
]])
command("call timer_start(2, 'MyHandler', {'repeat': 3})")
command("call timer_start(4, 'MyHandler2', {'repeat': 2})")
- run(nil, nil, nil, load_adjust(30))
- eq(3,eval("g:val"))
- eq(2,eval("g:val2"))
+ retry(nil, nil, function()
+ eq(3, eval("g:val"))
+ eq(2, eval("g:val2"))
+ end)
end)
it('do not crash when processing events in the handler', function()