mirror of
https://github.com/neovim/neovim.git
synced 2025-12-17 11:55:34 +00:00
tests: use larger timeout with "timers can be stopped from the handler" (#10760)
Seen on quickbuild:
23:01:01,289 INFO - not ok 1172 - timers can be stopped from the handler
23:01:01,289 INFO - # test/functional/eval/timer_spec.lua @ 154
23:01:01,289 INFO - # Failure message: test/functional/eval/timer_spec.lua:166: Expected objects to be the same.
23:01:01,289 INFO - # Passed in:
23:01:01,289 INFO - # (number) 3
23:01:01,289 INFO - # Expected:
23:01:01,289 INFO - # (number) 0
23:01:01,289 INFO - # stack traceback:
23:01:01,289 INFO - # test/functional/eval/timer_spec.lua:166: in function <test/functional/eval/timer_spec.lua:154>
Log: http://neovim-qb.szakmeister.net/build/24288
Ref: https://github.com/neovim/neovim/pull/10364
This commit is contained in:
@@ -164,8 +164,7 @@ describe('timers', function()
|
|||||||
]])
|
]])
|
||||||
command("call timer_start(10, 'MyHandler', {'repeat': -1})")
|
command("call timer_start(10, 'MyHandler', {'repeat': -1})")
|
||||||
eq(0,eval("g:val"))
|
eq(0,eval("g:val"))
|
||||||
run(nil, nil, nil, load_adjust(50))
|
retry(nil, nil, function()
|
||||||
retry(nil, 5000, function()
|
|
||||||
eq(3, eval("g:val"))
|
eq(3, eval("g:val"))
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
|
|||||||
Reference in New Issue
Block a user