changeset 26484:d945799b4604 v8.2.3772

patch 8.2.3772: timer info test fails on slow machine Commit: https://github.com/vim/vim/commit/ff39a650b2bd31e30d1bb8766e8560f9a14a7137 Author: Bram Moolenaar <Bram@vim.org> 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().
author Bram Moolenaar <Bram@vim.org>
date Fri, 10 Dec 2021 12:00:04 +0100
parents a0a1ec1776e3
children 9091abdf5363
files src/testdir/test_timers.vim src/version.c
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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
 
--- 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,