0
0
mirror of https://github.com/vim/vim.git synced 2025-10-06 05:44:14 -04:00

patch 8.2.3772: timer info test fails on slow machine

Problem:    Timer info test fails on slow machine.
Solution:   Use WaitForAssert().
This commit is contained in:
Bram Moolenaar
2021-12-10 10:57:08 +00:00
parent dd297bc11d
commit ff39a650b2
2 changed files with 3 additions and 2 deletions

View File

@@ -121,8 +121,7 @@ func Test_timer_info()
" check repeat count inside the callback
let g:timer_repeat = []
let tid = timer_start(10, {tid -> execute("call add(g:timer_repeat, timer_info(tid)[0].repeat)")}, #{repeat: 3})
sleep 100m
call assert_equal([2, 1, 0], g:timer_repeat)
call WaitForAssert({-> assert_equal([2, 1, 0], g:timer_repeat)})
unlet g:timer_repeat
endfunc

View File

@@ -753,6 +753,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
3772,
/**/
3771,
/**/