0
0
mirror of https://github.com/vim/vim.git synced 2025-10-12 06:44:06 -04:00

patch 8.2.0048: another timers test is flaky on Travis for Mac

Problem:    Another timers test is flaky on Travis for Mac.
Solution:   Increase maximum expected time.
This commit is contained in:
Bram Moolenaar
2019-12-27 17:14:33 +01:00
parent 0c1e3744ff
commit 5c463a28ff
2 changed files with 8 additions and 1 deletions

View File

@@ -73,7 +73,12 @@ func Test_timer_with_partial_callback()
let slept = WaitFor('g:val == 1') let slept = WaitFor('g:val == 1')
call assert_equal(1, g:val) call assert_equal(1, g:val)
if has('reltime') if has('reltime')
" Mac on Travis can be slow.
if has('mac')
call assert_inrange(49, 180, slept)
else
call assert_inrange(49, 130, slept) call assert_inrange(49, 130, slept)
endif
else else
call assert_inrange(20, 100, slept) call assert_inrange(20, 100, slept)
endif endif

View File

@@ -742,6 +742,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
48,
/**/ /**/
47, 47,
/**/ /**/