Skip to content

Commit ac42afd

Browse files
committed
patch 7.4.1540
Problem: Channel test is a bit flaky. Solution: Increase expected wait time.
1 parent 8e2c942 commit ac42afd

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

src/testdir/test_channel.vim

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -442,10 +442,11 @@ func Test_connect_waittime()
442442
" Oops, port does exists.
443443
call ch_close(handle)
444444
else
445-
" Failed connection should wait about 500 msec.
445+
" Failed connection should wait about 500 msec. Can be longer if the
446+
" computer is busy with other things.
446447
let elapsed = reltime(start)
447448
call assert_true(reltimefloat(elapsed) > 0.3)
448-
call assert_true(reltimefloat(elapsed) < 1.0)
449+
call assert_true(reltimefloat(elapsed) < 1.5)
449450
endif
450451
catch
451452
if v:exception !~ 'Connection reset by peer'

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -743,6 +743,8 @@ static char *(features[]) =
743743

744744
static int included_patches[] =
745745
{ /* Add new patch number below this line */
746+
/**/
747+
1540,
746748
/**/
747749
1539,
748750
/**/

0 commit comments

Comments
 (0)