test: "can have two timers": retry()

ref #10768
This commit is contained in:
Justin M. Keyes
2019-09-01 15:37:38 -07:00
parent b64af88c84
commit c062149d5b

View File

@@ -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()