neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 1dd9cd29652dd3ab5e960eb94bc9f7f48ff97670
parent cc6845db94ce1964c9fa15f451f33f7eb7bfb8df
Author: zeertzjq <zeertzjq@outlook.com>
Date:   Tue, 25 Apr 2023 22:03:52 +0800

vim-patch:8.2.3772: timer info test fails on slow machine

Problem:    Timer info test fails on slow machine.
Solution:   Use WaitForAssert().

https://github.com/vim/vim/commit/ff39a650b2bd31e30d1bb8766e8560f9a14a7137

Co-authored-by: Bram Moolenaar <Bram@vim.org>

Diffstat:
Mtest/old/testdir/test_timers.vim | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/test/old/testdir/test_timers.vim b/test/old/testdir/test_timers.vim @@ -98,8 +98,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