1
0
forked from aniani/vim

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')
call assert_equal(1, g:val)
if has('reltime')
call assert_inrange(49, 130, slept)
" Mac on Travis can be slow.
if has('mac')
call assert_inrange(49, 180, slept)
else
call assert_inrange(49, 130, slept)
endif
else
call assert_inrange(20, 100, slept)
endif

View File

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