summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-12-10 10:57:08 +0000
committerBram Moolenaar <Bram@vim.org>2021-12-10 10:57:08 +0000
commitff39a650b2bd31e30d1bb8766e8560f9a14a7137 (patch)
tree06f780c8222477c40b06b226c67587af9acc8b70
parentdd297bc11d2793ba61638972778c57f2da14e8b5 (diff)
downloadvim-git-8.2.3772.tar.gz
patch 8.2.3772: timer info test fails on slow machinev8.2.3772
Problem: Timer info test fails on slow machine. Solution: Use WaitForAssert().
-rw-r--r--src/testdir/test_timers.vim3
-rw-r--r--src/version.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/testdir/test_timers.vim b/src/testdir/test_timers.vim
index c833dd837..790b7b0d0 100644
--- 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
index 9b927f292..a598b6b14 100644
--- 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,