Mercurial > vim
changeset 17710:7d56da1c98f0 v8.1.1852
patch 8.1.1852: timers test is flaky
commit https://github.com/vim/vim/commit/7e6feb9eeb095ec424430ff4332c77f70372ce62
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Aug 15 23:42:21 2019 +0200
patch 8.1.1852: timers test is flaky
Problem: Timers test is flaky.
Solution: Accept a larger count. Add test to list of flaky tests.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 15 Aug 2019 23:45:03 +0200 |
parents | d5d530e13d89 |
children | 09d3e7bf3709 |
files | src/testdir/runtest.vim src/testdir/test_timers.vim src/version.c |
diffstat | 3 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/testdir/runtest.vim +++ b/src/testdir/runtest.vim @@ -333,6 +333,7 @@ let s:flaky_tests = [ \ 'Test_quotestar()', \ 'Test_raw_one_time_callback()', \ 'Test_reltime()', + \ 'Test_repeat_many()', \ 'Test_repeat_three()', \ 'Test_server_crash()', \ 'Test_terminal_ansicolors_default()',
--- a/src/testdir/test_timers.vim +++ b/src/testdir/test_timers.vim @@ -43,7 +43,7 @@ func Test_repeat_many() let timer = timer_start(50, 'MyHandler', {'repeat': -1}) sleep 200m call timer_stop(timer) - call assert_inrange(2, 4, g:val) + call assert_inrange(2, 5, g:val) endfunc func Test_with_partial_callback()