forked from aniani/vim
patch 7.4.1540
Problem: Channel test is a bit flaky. Solution: Increase expected wait time.
This commit is contained in:
@@ -442,10 +442,11 @@ func Test_connect_waittime()
|
|||||||
" Oops, port does exists.
|
" Oops, port does exists.
|
||||||
call ch_close(handle)
|
call ch_close(handle)
|
||||||
else
|
else
|
||||||
" Failed connection should wait about 500 msec.
|
" Failed connection should wait about 500 msec. Can be longer if the
|
||||||
|
" computer is busy with other things.
|
||||||
let elapsed = reltime(start)
|
let elapsed = reltime(start)
|
||||||
call assert_true(reltimefloat(elapsed) > 0.3)
|
call assert_true(reltimefloat(elapsed) > 0.3)
|
||||||
call assert_true(reltimefloat(elapsed) < 1.0)
|
call assert_true(reltimefloat(elapsed) < 1.5)
|
||||||
endif
|
endif
|
||||||
catch
|
catch
|
||||||
if v:exception !~ 'Connection reset by peer'
|
if v:exception !~ 'Connection reset by peer'
|
||||||
|
@@ -743,6 +743,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 */
|
||||||
|
/**/
|
||||||
|
1540,
|
||||||
/**/
|
/**/
|
||||||
1539,
|
1539,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user