1
0
forked from aniani/vim

patch 7.4.2281

Problem:    Timer test fails sometimes.
Solution:   Reduce minimum time by 1 msec.
This commit is contained in:
Bram Moolenaar 2016-08-28 16:06:05 +02:00
parent e999782e36
commit 0426bae2ab
2 changed files with 5 additions and 3 deletions

View File

@ -20,7 +20,7 @@ func Test_oneshot()
let slept = WaitFor('g:val == 1')
call assert_equal(1, g:val)
if has('reltime')
call assert_inrange(50, 100, slept)
call assert_inrange(49, 100, slept)
else
call assert_inrange(20, 100, slept)
endif
@ -32,7 +32,7 @@ func Test_repeat_three()
let slept = WaitFor('g:val == 3')
call assert_equal(3, g:val)
if has('reltime')
call assert_inrange(150, 250, slept)
call assert_inrange(149, 250, slept)
else
call assert_inrange(80, 200, slept)
endif
@ -57,7 +57,7 @@ func Test_with_partial_callback()
let slept = WaitFor('g:val == 1')
call assert_equal(1, g:val)
if has('reltime')
call assert_inrange(50, 130, slept)
call assert_inrange(49, 130, slept)
else
call assert_inrange(20, 100, slept)
endif

View File

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