# HG changeset patch # User Bram Moolenaar # Date 1639134004 -3600 # Node ID d945799b46049aaa5de210e367b553b84633b72e # Parent a0a1ec1776e370819d71b872456ccbdc2d97acdd patch 8.2.3772: timer info test fails on slow machine Commit: https://github.com/vim/vim/commit/ff39a650b2bd31e30d1bb8766e8560f9a14a7137 Author: Bram Moolenaar Date: Fri Dec 10 10:57:08 2021 +0000 patch 8.2.3772: timer info test fails on slow machine Problem: Timer info test fails on slow machine. Solution: Use WaitForAssert(). diff --git a/src/testdir/test_timers.vim b/src/testdir/test_timers.vim --- a/src/testdir/test_timers.vim +++ b/src/testdir/test_timers.vim @@ -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 diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -754,6 +754,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 3772, +/**/ 3771, /**/ 3770,