diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-04-25 22:03:52 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2023-04-25 22:22:40 +0800 |
commit | 1dd9cd29652dd3ab5e960eb94bc9f7f48ff97670 (patch) | |
tree | aa73df48d80bc4e528409ae01f37d46505a11945 | |
parent | cc6845db94ce1964c9fa15f451f33f7eb7bfb8df (diff) | |
download | rneovim-1dd9cd29652dd3ab5e960eb94bc9f7f48ff97670.tar.gz rneovim-1dd9cd29652dd3ab5e960eb94bc9f7f48ff97670.tar.bz2 rneovim-1dd9cd29652dd3ab5e960eb94bc9f7f48ff97670.zip |
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>
-rw-r--r-- | test/old/testdir/test_timers.vim | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/old/testdir/test_timers.vim b/test/old/testdir/test_timers.vim index ca9a312f95..b5781748bc 100644 --- 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 |